Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Zirix 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mixzira committed Jun 19, 2020
1 parent 3ea2f3b commit efdac51
Show file tree
Hide file tree
Showing 12 changed files with 98 additions and 57 deletions.
4 changes: 3 additions & 1 deletion zirix-data/resources/[emp]/emp_carteiro-coletar/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ local CoordenadaZ = 6.39
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local idle = 1000
if not processo then
local ped = PlayerPedId()
local x,y,z = table.unpack(GetEntityCoords(ped))
Expand All @@ -27,6 +27,7 @@ Citizen.CreateThread(function()

if distance <= 3 then
DrawMarker(23,-424.08,-2789.52,6.39-0.97,0,0,0,0,0,0,1.0,1.0,0.5,247,217,99,100,0,0,0,0)
idle = 5
if distance <= 1.2 then
drawTxt("PRESSIONE ~y~E~w~ PARA EMPACOTAR ENCOMENDA",4,0.5,0.92,0.35,255,255,255,180)
if IsControlJustPressed(0,38) and emP.checkPayment() then
Expand All @@ -49,6 +50,7 @@ Citizen.CreateThread(function()
if processo then
drawTxt("AGUARDE ~g~"..segundos.."~w~ SEGUNDOS ATÉ FINALIZAR O EMPACOTAMENTO",4,0.5,0.92,0.35,255,255,255,180)
end
Citizen.Wait(idle)
end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
Expand Down
12 changes: 9 additions & 3 deletions zirix-data/resources/[emp]/emp_carteiro-entregas/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ local locs = {
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local idle = 1000
if not servico then
local ped = PlayerPedId()
local x,y,z = table.unpack(GetEntityCoords(ped))
Expand All @@ -71,6 +71,7 @@ Citizen.CreateThread(function()

if distance <= 3 then
DrawMarker(23,CoordenadaX,CoordenadaY,CoordenadaZ-0.97,0,0,0,0,0,0,1.0,1.0,0.5,247,217,99,100,0,0,0,0)
idle = 5
if distance <= 1.2 then
drawTxt("PRESSIONE ~y~E~w~ PARA INICIAR AS ENTREGAS",4,0.5,0.92,0.35,255,255,255,180)
if IsControlJustPressed(0,38) then
Expand All @@ -84,14 +85,15 @@ Citizen.CreateThread(function()
end
end
end
Citizen.Wait(idle)
end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
--[ ENTREGAS ]---------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local idle = 1000
if servico then
local ped = PlayerPedId()
local x,y,z = table.unpack(GetEntityCoords(ped))
Expand All @@ -100,6 +102,7 @@ Citizen.CreateThread(function()

if distance <= 30 then
DrawMarker(21,locs[selecionado].x,locs[selecionado].y,locs[selecionado].z+0.20,0,0,0,0,180.0,130.0,2.0,2.0,1.0,247,217,99,100,1,0,0,1)
idle = 5
if distance <= 2.5 then
drawTxt("PRESSIONE ~y~E~w~ PARA ENTREGAR AS ENCOMENDAS",4,0.5,0.92,0.35,255,255,255,180)
if IsControlJustPressed(0,38) then
Expand All @@ -123,15 +126,17 @@ Citizen.CreateThread(function()
end
end
end
Citizen.Wait(idle)
end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
--[ CANCELAR ]---------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local idle = 1000
if servico then
idle = 5
if IsControlJustPressed(0,121) then
TriggerEvent("Notify","importante","Vá até o próximo local e entregue <b>"..quantidade.."x Encomendas</b>.")
elseif IsControlJustPressed(0,168) then
Expand All @@ -140,6 +145,7 @@ Citizen.CreateThread(function()
TriggerEvent("Notify","aviso","Você saiu de serviço.")
end
end
Citizen.Wait(idle)
end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
Expand Down
12 changes: 7 additions & 5 deletions zirix-data/resources/[emp]/emp_desmanche/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,21 @@ local locais = {
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local idle = 1000
if not roubando then
for _,v in pairs(locais) do
local ped = PlayerPedId()
local x,y,z = table.unpack(v)
local distance = GetDistanceBetweenCoords(GetEntityCoords(ped),v.x,v.y,v.z)
if distance <= 50 and GetPedInVehicleSeat(GetVehiclePedIsUsing(ped),-1) == ped then
DrawMarker(23,v.x,v.y,v.z-0.97,0,0,0,0,0,0,1.0,1.0,0.5,247,217,99,100,0,0,0,0)
idle = 5
if distance <= 3.1 and IsControlJustPressed(0,38) then
if emP.checkVehicle() and emP.checkPermission(v.perm) then
roubando = true
segundos = 5
FreezeEntityPosition(GetVehiclePedIsUsing(ped),true)



repeat
Citizen.Wait(10)
until segundos == 0
Expand All @@ -45,20 +44,23 @@ Citizen.CreateThread(function()
end
end
end
Citizen.Wait(idle)
end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
-- TEXTO
--[ TEXTO ]------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local idle = 1000
if roubando then
idle = 5
if segundos > 0 then
DisableControlAction(0,75)
drawTxt("AGUARDE ~g~"..segundos.." SEGUNDOS~w~, ESTAMOS DESATIVANDO O ~y~RASTREADOR ~w~DO VEÍCULO",4,0.5,0.92,0.35,255,255,255,180)
end
end
Citizen.Wait(idle)
end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
Expand Down
6 changes: 4 additions & 2 deletions zirix-data/resources/[emp]/emp_leiteiro-coletar/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ end)
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local idle = 1000
if not processo then
for _,func in pairs(vacas) do
local ped = PlayerPedId()
local x,y,z = table.unpack(func)
local distancia = GetDistanceBetweenCoords(GetEntityCoords(ped),x,y,z)
if distancia <= 30.0 then
if distancia <= 10.0 then
idle = 5
if distancia <= 1.2 then
drawTxt("PRESSIONE ~b~E~w~ PARA ORDENHAR A VACA",4,0.5,0.92,0.35,255,255,255,180)
if IsControlJustPressed(0,38) and emP.checkItem() then
Expand All @@ -68,6 +69,7 @@ Citizen.CreateThread(function()
if processo then
drawTxt("AGUARDE ~b~"..segundos.."~w~ SEGUNDOS ATÉ FINALIZAR A EXTRAÇÃO DO LEITE",4,0.5,0.92,0.35,255,255,255,180)
end
Citizen.Wait(idle)
end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
Expand Down
14 changes: 10 additions & 4 deletions zirix-data/resources/[emp]/emp_leiteiro-entregas/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ local leitelocs = {
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local idle = 1000
if not servico then
local ped = PlayerPedId()
local x,y,z = table.unpack(GetEntityCoords(ped))
local bowz,cdz = GetGroundZFor_3dCoord(CoordenadaX,CoordenadaY,CoordenadaZ)
local distance = GetDistanceBetweenCoords(CoordenadaX,CoordenadaY,cdz,x,y,z,true)
if distance <= 30 then
if distance <= 10.2 then
DrawMarker(23,CoordenadaX,CoordenadaY,CoordenadaZ-0.97,0,0,0,0,0,0,1.0,1.0,0.5,247,217,99,100,0,0,0,0)
idle = 5
if distance <= 2 then
drawTxt("PRESSIONE ~y~E~w~ PARA INICIAR AS ENTREGAS",4,0.5,0.92,0.35,255,255,255,180)
if IsControlJustPressed(0,38) then
Expand All @@ -54,21 +55,23 @@ Citizen.CreateThread(function()
end
end
end
Citizen.Wait(idle)
end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
--[ ENTREGAS ]---------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local idle = 1000
if servico then
local ped = PlayerPedId()
local x,y,z = table.unpack(GetEntityCoords(ped))
local bowz,cdz = GetGroundZFor_3dCoord(leitelocs[selecionado].x,leitelocs[selecionado].y,leitelocs[selecionado].z)
local distance = GetDistanceBetweenCoords(leitelocs[selecionado].x,leitelocs[selecionado].y,cdz,x,y,z,true)
if distance <= 10 then
DrawMarker(23,leitelocs[selecionado].x,leitelocs[selecionado].y,leitelocs[selecionado].z-0.97,0,0,0,0,0,0,1.0,1.0,0.5,247,217,99,100,0,0,0,0)
idle = 5
if distance <= 2 then
drawTxt("PRESSIONE ~y~E~w~ PARA ENTREGAR AS GARRAFAS DE LEITE",4,0.5,0.92,0.35,255,255,255,180)
if IsControlJustPressed(0,38) then
Expand All @@ -90,15 +93,17 @@ Citizen.CreateThread(function()
end
end
end
Citizen.Wait(idle)
end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
--[ CANCELAR ]---------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local = 1000
if servico then
idle = 5
if IsControlJustPressed(0,121) then
TriggerEvent("Notify","importante","Vá até o próximo local e entregue <b>"..quantidade.."x garrafas de leite</b>.")
elseif IsControlJustPressed(0,168) then
Expand All @@ -107,6 +112,7 @@ Citizen.CreateThread(function()
TriggerEvent("Notify","aviso","Você saiu de serviço.")
end
end
Citizen.Wait(idle)
end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
Expand Down
4 changes: 3 additions & 1 deletion zirix-data/resources/[emp]/emp_lenhador-coletar/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ local arvores = {
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local idle = 1000
if not processo then
for _,func in pairs(arvores) do
local ped = PlayerPedId()
Expand All @@ -60,6 +60,7 @@ Citizen.CreateThread(function()
local vehicle = GetPlayersLastVehicle()
if distancia <= 50 and list[i] == nil then
DrawMarker(21,x,y,z,0,0,0,0,180.0,130.0,0.5,0.5,0.5,247,217,99,100,1,0,0,1)
idle = 5
if distancia <= 1 and list[i] == nil then
if distancia <= 1.2 and GetSelectedPedWeapon(ped) == GetHashKey("WEAPON_HATCHET") or GetSelectedPedWeapon(ped) == GetHashKey("WEAPON_BATTLEAXE") or GetSelectedPedWeapon(ped) == GetHashKey("WEAPON_STONE_HATCHET") then
drawTxt("PRESSIONE ~y~E~w~ PARA CORTAR MADEIRA",4,0.5,0.93,0.50,255,255,255,180)
Expand All @@ -82,6 +83,7 @@ Citizen.CreateThread(function()
if processo then
drawTxt("AGUARDE ~g~"..segundos.."~w~ SEGUNDOS ATÉ FINALIZAR A EXTRAÇÃO DA MADEIRA",4,0.5,0.93,0.50,255,255,255,180)
end
Citizen.Wait(idle)
end
end)

Expand Down
12 changes: 9 additions & 3 deletions zirix-data/resources/[emp]/emp_lenhador-entregas/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ local toralocs = {
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local idle = 1000
if not servico then
local ped = PlayerPedId()
local x,y,z = table.unpack(GetEntityCoords(ped))
Expand All @@ -42,6 +42,7 @@ Citizen.CreateThread(function()

if distance <= 70 and IsVehicleModel(GetVehiclePedIsUsing(ped),GetHashKey("pounder")) then
DrawMarker(39,CoordenadaX,CoordenadaY,CoordenadaZ-0.20,0,0,0,0,0.0,130.0,2.0,2.0,2.0,247,217,99,100,1,0,0,1)
idle = 5
if distance <= 9 then
drawTxt("PRESSIONE ~y~E~w~ PARA INICIAR AS ENTREGAS",4,0.5,0.93,0.50,255,255,255,180)
if IsControlJustPressed(0,38) then
Expand All @@ -53,14 +54,15 @@ Citizen.CreateThread(function()
end
end
end
Citizen.Wait(idle)
end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
--[ ENTREGAS ]---------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local idle = 1000
if servico then
local ped = PlayerPedId()
local x,y,z = table.unpack(GetEntityCoords(ped))
Expand All @@ -70,6 +72,7 @@ Citizen.CreateThread(function()

if distance <= 30 and GetEntityModel(vehicle) == GetHashKey("pounder") and not IsPedInAnyVehicle(ped) then
DrawMarker(21,toralocs[selecionado].x,toralocs[selecionado].y,toralocs[selecionado].z+0.20,0,0,0,0,180.0,130.0,2.0,2.0,1.0,247,217,99,100,1,0,0,1)
idle = 5
if distance <= 2.5 then
drawTxt("PRESSIONE ~y~E~w~ PARA ENTREGAR AS TORAS",4,0.5,0.92,0.35,255,255,255,180)
if IsControlJustPressed(0,38) then
Expand All @@ -91,15 +94,17 @@ Citizen.CreateThread(function()
end
end
end
Citizen.Wait(idle)
end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
--[ CANCELAR ]---------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
local idle = 1000
if servico then
idle = 5
if IsControlJustPressed(0,121) then
TriggerEvent("Notify","importante","Vá até o próximo local e entregue <b>"..quantidade.."x Toras</b>.")
elseif IsControlJustPressed(0,168) then
Expand All @@ -108,6 +113,7 @@ Citizen.CreateThread(function()
TriggerEvent("Notify","aviso","Você saiu de serviço.")
end
end
Citizen.Wait(idle)
end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit efdac51

Please sign in to comment.