Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addEventHandler("onPlayerVehicleExit", getRootElement(),
- function(veh,sea)
- if (getElementModel(veh) == 420 or getElementModel(veh) == 428) then
- if (sea == 1 or sea == 2 or sea == 3) then
- local randomMoney = math.random( 50,200 )
- if ( getPlayerMoney( source ) >= randomMoney ) then
- takePlayerMoney( source, randomMoney )
- triggerClientEvent(source,"showAttention",source,randomMoney)
- if (sea == 4) then
- givePlayerMoney(source, randomMoney)
- triggerClientEvent(source,"showHisMoney",source,randomMoney)
- end
- elseif ( sea == 4 ) then
- triggerClientEvent(source,"noMoney",source)
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment