• automatic vision whit specific job, help
    3 replies, posted
I found an addon, which by writing a command in the console f10, activates the thermal vision, and I would like a specific job (darkrp) when it becomes that job, automatically sees with this thermal vision, and when it changes jobs, the thermal vision must end. how can I do?
Use hook.Add on the darkrp hook OnPlayerChangedTeam and use if statements to check whether the team the player changed into or out of is the one that activates the thermal vision. If the thermal vision addon has some sort of variable or hook to enable it on certain players then just use those. If not you will have to network something to the client using the Net Library
I understood in part, I access the console f10, and writing a code, I activate the thermal vision, and I would like this command to be launched as soon as the player chooses that specific job, so as to activate the thermal vision,
Gotcha, then use Player/ConCommand with the hook i mentioned in my first reply
Sorry, you need to Log In to post a reply to this thread.