General > Developers Corner

DarkRP re: Urestrict - and anything else DarkRP breaks

<< < (2/5) > >>

jay209015:
Simply look at my files compared to yours.

Drakehawke:
Yes but, for me, physgunlimiter.lua and sv_init.lua dont exist. Im currently going to make the changes to sv_gamemode_functions.lua, and see if that helps.

jay209015:
Well, look anywhere that the author calls the CanTool hook and see if it returns true anywhere and if it does, make it just return

Drakehawke:
So wherever I find "return true" in the CanTool hooks, I change it to just "return"?

Drakehawke:
Ugh, just updated DarkRP for a different bug fix, the CanTool thing now does this:

--- Code: ---...
end
return GAMEMODE:CanTool(ply, trace, tool)
end
hook.Add("CanTool", "FPP.Protect.CanTool", FPP.Protect.CanTool)
--- End code ---

Do I still have to make it just return? Or will it work now?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version