TimeTraveller Posted August 21, 2022 Share Posted August 21, 2022 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
Tails Posted August 21, 2022 Share Posted August 21, 2022 You need to use givePlayerMoney: https://wiki.multitheftauto.com/wiki/GivePlayerMoney 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