Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Blitz = createMarker(2492.6001,-1679.6,12.1,"cylinder",2,0,255,0)
- local policialCriado = false
- function policial()
- if policialCriado == false then
- local thePed = createPed(283, 2495.7817382813, -1682.6011962891, 13.347496986389)
- givePedWeapon(thePed, 31, 5000, true)
- setPedControlState(thePed, "fire", true)
- local x, y, z = getElementPosition(localPlayer)
- setPedAimTarget(thePed, x, y, z)
- getElementType(player)
- destroyElement(player)
- policialCriado = true end
- end
- local msgApareceu = false
- function Blitz_func()
- if msgApareceu == false then
- outputChatBox("--Blitz---", 255,255,0)
- outputChatBox("Você Foi Parado em uma batida policial, por favor mostre seus documentos", 255,255,0)
- outputChatBox("Se não estiver portando habilitação voce ganhará niveis de procurado", 255,255,0)
- outputChatBox("Não saia do veiculo ou faça qualquer movimento brusco", 255,255,0)
- outputChatBox("SE DESOBEDECER QUALQUER ORDEM", 255,255,0)
- outputChatBox("--Blitz--", 255,255,0)
- msgApareceu = true end
- end
- function QuandoEntrarNOMARKER(thePlayer)
- if(getElementData(thePlayer, "temHabilitacao")) then
- outputChatBox("Você Possui sim uma habilitação", 255,255,0)
- return
- end
- end
- addEventHandler("onClientMarkerHit", getRootElement(), function(thePlayer), QuandoEntrarNOMARKER(), Blitz_func()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement