• Simple Prop Protection Crashes
    0 replies, posted
I am running Simple Prop Protection, and for some reason it crashes, i didnt edit anything, it just doesnt seem to work when i try to pick up a prop, and it says this inside the console. [code] Hook 'SPropProtection.PhysgunPickup' Faild: SPropProtection/sv_Int.lua:161: bad argument #1 to 'pairs' (table expected, got nil) ERROR: Hook 'sPropProtectopm.CanTool' Failed: SPropProtection/sv_init.lua:161: bad argument #1 to 'pairs' (table ex[ected, got nil) Removing Hook 'SPropProtection.PhysgunPickup' Error: Hook 'GMS_UseKeyHook' Failed: GMStranded/gamemode/init.lua:2897: attempt to call field 'PlayerIsPropOwner' (a nil value) Removing Gook 'GMS_UseKeyHook' [/code] Any help would be VERY much appreciated :D [editline]12:56AM[/editline] Incase you are wondering what line 161 is inside sv_init.lua here it is. Hope it helps. [code] for k, v in pairs(GAMEMODE.CameraList) do for b, j in pairs(v) do if(j == ent) then if(k == ply:SteamID() and e == ent) then SPropProtection.PlayerMakePropOwner(ply, ent) SPropProtection.Nofity(ply, "You now own this prop") return true end end end end end[/code]
Sorry, you need to Log In to post a reply to this thread.