10.06.2020, 16:04
There is a function called "getPlayerFocus" on server-side, look inside Functions.txt and you'll find it's 'declaration'.
The function has one parameter, which is the id of player whose 'focus id' you want to get.
For example, if i am player (id 0), and you are player (id 1), and i focused you, then, when you call this function like this:
Of course, the above code is only a dummy example.
The function has one parameter, which is the id of player whose 'focus id' you want to get.
For example, if i am player (id 0), and you are player (id 1), and i focused you, then, when you call this function like this:
Code:
local focus = getPlayerFocus(0)
print(focus) // this will print 1
Of course, the above code is only a dummy example.