How can I check URS Recstrictions within an entity
1 replies, posted
Im trying to modify the aid communicator of JI Defense solutions to check if a user is allowed to spawn in the entity they are trying to request. The way I am doing this is by simply calling the URS Check function, however I cant figure out how to properly include URS.
I am still not that comfortable with gmod lua and dont really get how to get functions from a different addon yet. I need the functions located in the urs_server.lua file, however the file isnt in the same directory as the entity, ofc and I dont see how I can use include() without that being the case ( and without using a overly long name to indicate that it has to go back 2-4 directories etc ).
What is the recommended way of going about this problem?
Sometimes you have to call if you are running the addon on a different server than your personal client machine, This sends the file to the server to avoid Lua errors. The includes are relative to the "lua" folder ;)
https://wiki.garrysmod.com/page/Global/AddCSLuaFile
See my trackassembly here ;P
Good luck !
Sorry, you need to Log In to post a reply to this thread.