TorNix~|nR Posted December 1, 2015 Share Posted December 1, 2015 Hello everyone, I have an problem in my VIP panel, I need to make it ------------------------------------------------------------------------- function reparar12 ( ) if (not isElement(plr)) then return end end local veh = getPedOccupiedVehicle(plr) setElementHealth(veh, 1000) fixVehicle(veh) ------------------------------------------------------------------------- It won't work what I need do ? please help me Link to comment
Captain Cody Posted December 1, 2015 Share Posted December 1, 2015 Whats the event hadler/command handler attatched to it? And you don't put what "plr" is, unless that's included in a previous part of the script. Link to comment
TorNix~|nR Posted December 2, 2015 Author Share Posted December 2, 2015 I need to add a repair function to vip menu, please tell me what I do? the code? Link to comment
jingzhi Posted December 2, 2015 Share Posted December 2, 2015 Hello everyone, I have an problem in my VIP panel, I need to make it------------------------------------------------------------------------- function reparar12 ( ) if (not isElement(plr)) then return end end local veh = getPedOccupiedVehicle(plr) setElementHealth(veh, 1000) fixVehicle(veh) ------------------------------------------------------------------------- It won't work what I need do ? please help me Show the full code, also show your codes with the "lua" funcion, otherwise it's hard to read Link to comment
TorNix~|nR Posted December 2, 2015 Author Share Posted December 2, 2015 I add in client function reparar12 () vehicles = getElementsByType ( "vehicle" ) fixVehicle ( vehicleValue ) end and in server function reparar12 ( ) if (not isElement(plr)) then return end end local veh = getPedOccupiedVehicle(plr) setElementHealth(veh, 1000) fixVehicle(veh) it won't work please help Link to comment
.:HyPeX:. Posted December 2, 2015 Share Posted December 2, 2015 I add in client function reparar12 () vehicles = getElementsByType ( "vehicle" ) fixVehicle ( vehicleValue ) end and in server function reparar12 ( ) if (not isElement(plr)) then return end end local veh = getPedOccupiedVehicle(plr) setElementHealth(veh, 1000) fixVehicle(veh) it won't work please help Follow what Jing said, else there's no way we can help you out. Please read this before posting 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