Chris_37 0 Posted April 23, 2018 hey wondering if anyone could help me out ive been looking at other whitelist topics but had no luck in have a player uid whitelist where the file is serverside and editable? or would i have to use a addon such as extdb3? Share this post Link to post Share on other sites
HazJ 1288 Posted April 23, 2018 From top of my head, not tested. Something like: initServer.sqf [] execVM "\server\whitelistedUIDs.sqf"; whitelistedUIDs.sqf whitelistedUIDs = ["123", "321"]; publicVariable "whitelistedUIDs"; \server \server\whitelistedUIDs.sqf Where "server" is a folder in the root directory where server files are. Feel free to change the name. Just a note: It isn't ideal to use PV with a lot of things, as it will broadcast to everyone over the network (even players already on server) which could cause a lot of desync, etc... For that, use publicVariableClient command. For this (example above) it should be okay. I just meant for a lot of server-side code. Share this post Link to post Share on other sites
Chris_37 0 Posted April 24, 2018 On 23/04/2018 at 7:57 PM, HazJ said: From top of my head, not tested. Something like: initServer.sqf [] execVM "\server\whitelistedUIDs.sqf"; whitelistedUIDs.sqf whitelistedUIDs = ["123", "321"]; publicVariable "whitelistedUIDs"; \server \server\whitelistedUIDs.sqf Where "server" is a folder in the root directory where server files are. Feel free to change the name. Just a note: It isn't ideal to use PV with a lot of things, as it will broadcast to everyone over the network (even players already on server) which could cause a lot of desync, etc... For that, use publicVariableClient command. For this (example above) it should be okay. I just meant for a lot of server-side code. Thanks, is it possible for the file to be edited while the server is active or would i have to use something like extdb3? Share this post Link to post Share on other sites
HazJ 1288 Posted April 24, 2018 Try it and see. Should work but you will have to execVM it again. Can be from debug for example. Share this post Link to post Share on other sites
Chris_37 0 Posted April 24, 2018 It Works! However i cant edit it 'file in use from another process' Share this post Link to post Share on other sites