• Give() Dont work
    11 replies, posted
I'm trying to give a weapon for a player, but dont gives it, code: [CODE] OnStart = function(p,g) p:Give("jb_knife"); g:Give("jb_knife") end,[/CODE]
What. What is, and how, is OnStart being called?
we doesn't have enouph code no errors? then p and g are not defined or OnStart isn't called or is called without p and g
Help threads with OP's like these should be bannable
[QUOTE=crazyscouter;45623896]What. What is, and how, is OnStart being called?[/QUOTE] [QUOTE=frietje2008;45623897]we doesn't have enouph code no errors? then p and g are not defined or OnStart isn't called or is called without p and g[/QUOTE] Yes, SetPos works perfectly. And no errors EDIT: Pointshop weapons dont work too, but on the player spawn hook Give() works .-.
[QUOTE=HunterFP;45624058]Yes, SetPos works perfectly. And no errors EDIT: Pointshop weapons dont work too, but on the player spawn hook Give() works .-.[/QUOTE] Are you high?
[QUOTE=JasonMan34;45624081]Are you high?[/QUOTE] Sorry, i didnt understand
Yeah, please provide more information. What copy of Jailbreak are you using? Like, who made it
[QUOTE=NiandraLades;45624137]Yeah, please provide more information. What copy of Jailbreak are you using? Like, who made it[/QUOTE] _NewBee's JailBreak(fixed by Dannyman for Gmod 13)
Have you uh just thought about you a PlayerSpawn hook
To give weapons, use the PlayerLoadout hook ( called by PlayerSpawn after player is spawned-in, unless the function was changed in the game-mode and it wasn't put back in ), however, it is possible to prevent weapons being picked up by using ( or if the gamemode uses ) GM:PlayerCanPickupWeapon( _p, _w )
Surely you could just use a ply:Loadout() function?
Sorry, you need to Log In to post a reply to this thread.