Jump to content

RepairVehicle


TorNix~|nR

Recommended Posts

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
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

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...