chris1384 Posted February 22, 2018 Share Posted February 22, 2018 Hi there! I'm working at the race resource and I was wondering if I can get the spectator target's health and nitro and other elements data (like.. I'm spectating a player and I want to know how much nitro he has left). Is it possible? And how? Link to comment
NeXuS™ Posted February 22, 2018 Share Posted February 22, 2018 getVehicleNitroLevel, getElementHealth. Link to comment
chris1384 Posted February 22, 2018 Author Share Posted February 22, 2018 (edited) Getting a vehicle health when using setCameraTarget on a different player I meant, not from localPlayer. Nevermind, solved Edited February 22, 2018 by chris1384 Link to comment
Tommy. Posted February 23, 2018 Share Posted February 23, 2018 (edited) I did not test. --ClientSide function getStatusCamera() local spec = getCameraTarget() local veh = getVehicleOccupant(spec) if (getElementType(spec) == "player") then getElementHealth(veh) getVehicleNitroLevel(veh) end end Edited February 23, 2018 by Tommy. I forgot to put the vehicle :v 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now