Discord
Steam
/
Garry's Mod
/
Developers
/
Problem with P..
Login/Join
Event Log
Problem with PlayerSpawnedProp
5 replies, posted
Search
In This Thread
[lua]function ZXPlayerSpawnedProp ( ply, model, ent ) print ( "hihihihihi" ) end hook.Add ( "PlayerSpawnedProp", "ZXPlayerSpawnedProp", ZXPlayerSpawnedProp )[/lua] gives me the error: [code] ERROR: Hook 'ZXPlayerSpawnedProp' tried to call a nil function! Removing Hook 'ZXPlayerSpawnedProp'[/code]
there's more, but I tested it on its own (seperate lua file with just that) and got the same error.
There is literally nothing wrong with just the code you gave, so surely there's something else.
Deleted all my addons, seems to be working now, one of them must have broke in some update, my bad.
Sorry, you need to
Log In
to post a reply to this thread.