Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- carShopMarker = createMarker (-695.5, 961.29998779297, 12.300000190735, "cylinder", 3, 255, 0, 0, 127)
- car1= createBlip ( -695.5, 961.29998779297, 12.300000190735, 55 )
- addEvent ("viewGUI", true)
- function markerHit (hitPlayer, matchingDimension)
- if (source == carShopMarker) then
- triggerClientEvent ("viewGUI", hitPlayer)
- outputChatBox("Um die Car hilfe aufzurufen /vehhelp", 255, 0, 0, hitplayer)
- end
- end
- addEventHandler ("onMarkerHit", getRootElement(), markerHit)
- addEvent ("carShopCarBuy", true)
- addEventHandler ("carShopCarBuy", getRootElement(),
- function(id, cost, name)
- if (getPlayerMoney (source) >= tonumber(cost)) then
- outputChatBox ("Geben an " .. name, source, 255, 0, 0, false)
- outputChatBox ("ID: " .. id, source, 255, 0, 0, false)
- outputChatBox ("Preis: " .. cost, source, 255, 0, 0, false)
- takePlayerMoney (source, tonumber (cost))
- setAccountData (getPlayerAccount (source), "funmodev2-car", tonumber(id))
- setAccountData (getPlayerAccount (source), "funmodev2-paintjob", 3)
- setAccountData (getPlayerAccount (source), "funmodev2-carupg", 0)
- else
- outputChatBox ("Zu wenig Geld!", source, 255, 0, 0, false)
- addEventHandler ("onVehicleExplode", getRootElement(),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement