Jump to content

I need help with my Checkpoint Money


Recommended Posts

I want to give money (10$) when you hit a checkpoint in Race, this is the code but it not work. What's Wrong?

function giveplayermoney (thePlayer, checkpoint)
         local money = getPlayerMoney(thePlayer)
		 if (money > 10) then
		 local elementType = getElementType(hitElement)
		 end
addEventHandler("onMarkerHit", thePlayer, giveplayermoney)

 

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