I make multiple mods and the scripts are similar yet different. The problem is that if two functions have the same ID/Name they overwrite each other.
So I think “Oh maybe… I can use local functions! those are only in the scope of the entire script and not global, right?”
So I use local, the hooks havent changed but each function has local in front of it.
Then no function can be called, they work with hooks yes, but I cant call them from other local functions.
local function PlyVehicle(ply, veh) if SERVER then MES("LAL") end end local function MES(str) if SERVER then PrintMessage(3,str) end end
attempt to call global 'MES' (a nil value)
Thank you for taking time to read this