TorNix~|nR Posted December 1, 2015 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 ZI ZOMBIE INFECTION: mtasa://5.196.7.163:22003
Captain Cody Posted December 1, 2015 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.
TorNix~|nR Posted December 2, 2015 Author Posted December 2, 2015 I need to add a repair function to vip menu, please tell me what I do? the code? ZI ZOMBIE INFECTION: mtasa://5.196.7.163:22003
jingzhi Posted December 2, 2015 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
TorNix~|nR Posted December 2, 2015 Author 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 ZI ZOMBIE INFECTION: mtasa://5.196.7.163:22003
.:HyPeX:. Posted December 2, 2015 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 My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
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