Multi Posted October 4, 2013 Posted October 4, 2013 Witam chcialbym sie zapytac czy da sie zrobic marker w ktorym dostaje sie kase lecz jak tylko wjedziesz danym pojazdem ze jak np masz marker i wjedziesz burrito to ci nie da kasy a jak wjedziesz np Infernusem to ci da 50$ jezeli tak prosze o kod lub funkcje.
Wielebny Posted October 4, 2013 Posted October 4, 2013 addEventHandler("onMarkerHit", marker, function(he,md) if not md or getElementType(he)~="player" then return end local pojazd=getPedOccupiedVehicle(he) if not pojazd then return end -- gracz przyszedl pieszo if getVehicleController(pojazd)~=he then return end -- gracz nie jest kierowca if getElementModel(pojazd)==TU_WSTAW_ID_INFERNUSA then outputChatBox("Jezdzisz Infernusem, dostajesz 50$", he) givePlayerMoney(he, 50) end end)
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