How to get info from a player file in a different script?
#1

I have an Admin FS with player variables such as their admin, vip, and beta ranks and saves them into a user file. I need to check in the GM if the player is a beta tester by checking the same user file, then perform the command, because the GM has variables that cant be read from the Admin FS. I've tried using Y_Hooks without success. I want to know the simplest way to perform this operation. Thanks in advance!
Reply
#2

You could use PVars which can be shared across gamemodes and filterscripts.

Or create a public getter function that returns your variable and call that outside of the script using CallRemoteFunction.
Reply
#3

Quote:
Originally Posted by Corekt
Посмотреть сообщение
You could use PVars which can be shared across gamemodes and filterscripts.

Or create a public getter function that returns your variable and call that outside of the script using CallRemoteFunction.
I've tried callremotefunction but it wasnt working, maybe I was doing it wrong, idk. I'll try Pvars.

EDIT resolved.
Reply
#4

Show me your setup for CallRemoteFunction.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)