Jump to content

i need help for race scripting


Erhabi

Recommended Posts

Posted

hi all

I made the scripting for race mode

But I have a problem

I want to know how to make the player if he wins give him 100

I'm sorry for my bad English

Posted

plzzz i need help the scrioting does not work

i created a file.lua in race folder

function win ( rank, finishtime )

if ( rank == 1 ) then

givePlayerMoney ( source, 100 )

end

end

addEvent ( "onPlayerFinish", true )

addEventHandler( "onPlayerFinish", getRootElement(), win )

but that not work

Posted

And AFAIR race gamemode has money HUD disabled by default.. Maybe you just don't know that script is working?

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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