local mineur_veste = {
{ ['x'] = X, ['y'] = Y, ['z'] = Z },
}
And
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local pos = GetEntityCoords(GetPlayerPed(-1), false)
for k,v in ipairs(mineur_veste) do
if(Vdist(v.x, v.y, v.z, pos.x, pos.y, pos.z) < 20.0)then
DrawMarker(1, v.x, v.y, v.z - 1, 0, 0, 0, 0, 0, 0, 1.0001, 1.0001, 1.5001, 0, 25, 165, 165, 0,0, 0,0)
if(Vdist(v.x, v.y, v.z, pos.x, pos.y, pos.z) < 2.0)then
DisplayHelpText("Appuyez sur ~INPUT_CONTEXT~ pour accéder au ~b~Vestiaire")
if IsControlJustPressed(1, 51) then
OpenMenuVest()
Menu.hidden = not Menu.hidden
end
Menu.renderGUI(options)
end
end
end
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if(isNearTakeService()) then
DisplayHelpText('Appuyez sur ~INPUT_CONTEXT~ pour accéder au ~b~Vestiaire',0,1,0.5,0.8,0.6,255,255,255,255) -- ~g~E~s~
if IsControlJustPressed(1,51) then
OpenMenuVest()
end
end
By this
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if(isNearTakeService()) then
DisplayHelpText('Appuyez sur ~INPUT_CONTEXT~ pour accéder au ~b~Vestiaire',0,1,0.5,0.8,0.6,255,255,255,255) -- ~g~E~s~
if IsControlJustPressed(1,51) then
OpenMenuVest()
end
end
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local pos = GetEntityCoords(GetPlayerPed(-1), false)
if(Vdist(2707.11083984375, 2777.21069335938, 37.8780288696289, pos.x, pos.y, pos.z) < 20.0)then
DrawMarker(1, 2707.11083984375, 2777.21069335938, 37.8780288696289 - 1, 0, 0, 0, 0, 0, 0, 1.0001, 1.0001, 1.5001, 0, 25, 165, 165, 0,0, 0,0)
if(isNearTakeService()) then
DisplayHelpText('Appuyez sur ~INPUT_CONTEXT~ pour accéder au~b~Vestiaire',0,1,0.5,0.8,0.6,255,255,255,255) -- ~g~E~s~
if IsControlJustPressed(1,51) then
OpenMenuVest()
end
end
end
end
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local pos = GetEntityCoords(GetPlayerPed(-1), false)
if(Vdist(2707.11083984375, 2777.21069335938, 37.8780288696289, pos.x, pos.y, pos.z) < 20.0)then
DrawMarker(1, 2707.11083984375, 2777.21069335938, 37.8780288696289 - 1, 0, 0, 0, 0, 0, 0, 1.0001, 1.0001, 1.5001, 0, 25, 165, 165, 0,0, 0,0)
if(isNearTakeService()) then
DisplayHelpText('Appuyez sur ~INPUT_CONTEXT~ pour accéder au~b~Vestiaire',0,1,0.5,0.8,0.6,255,255,255,255) -- ~g~E~s~
if IsControlJustPressed(1,51) then
OpenMenuVest()
end
end
end
end
end)