Jump to content

client side


arris

Recommended Posts

ok so i made two scritps they work but when i add the line takePlayerMoney it doesn't work heres the code and also this is all client side and its a guibutton

function fixvehicle ( button, state )
if button == "left" and state == "down" then
local clientPlayer = getLocalPlayer() 
if isPlayerInVehicle(clientPlayer) == true then
local Vehicle = getPlayerOccupiedVehicle ( clientPlayer)
fixVehicle(Vehicle)
outputChatBox("Vehicle Successfully Fixed/Repaired",255,255,0,true)
else 
outputChatBox("You are not in a vehicle",255,0,0,true)
end
end
end

and

function fullhealth ( button, state )
if button == "left" and state == "down" then
local client = getLocalPlayer()
if getElementType(client)=="player" and getElementHealth(client)<= 75 then
setElementHealth( client, 100 )
else 
outputChatBox("You Have More Then 75% Of Health!",255,0,0,true)
end
end
end

i want it to cost $200 but i can't find the right code

Link to comment

What do you mean it doesn't work? "Doesn't work" is the most seen phrase on this forums but you're all not telling what doesn't work, what errors you get (if any)... takePlayerMoney doesn't work? The script doesn't even start? There are many things that may not work, tell us what doesn't work exactly.

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