Hey FP
This is my first post so sorry if it's in the wrong place.
Basically I have a Garry'smod TTT server running successfully with ULX admin mod installed. I'd like to add a new section on the ulx menu that allows me to create vehicles and npcs where the spawner is looking. I've managed to add the drop down menu called "Spawn" and have added a clickable text called spawn but can't for the life of me physically create the NPC or vehicle. So far I have:
local CATEGORY_NAME = "Spawn"
------------------------------ Spawn ------------------------------
ulx.fancyLogAdmin( calling_ply, "#A spawned an entity", )
local spawn = ulx.command( CATEGORY_NAME, "ulx spawn", ulx.selectivestripweapons, "!spawn" )
spawn:addParam{ type=ULib.cmds.PlayersArg }
spawn:defaultAccess( ULib.ACCESS_ADMIN )
spawn:help( "spawn a zombie." )
I broke it at some point to where the server kicks you from the game due to lua errors... can someone correct this code so I can spawn NPCs & vehicles? Thanks!
Sorry, you need to Log In to post a reply to this thread.