Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
zRxnx authored Mar 17, 2023
0 parents commit e63e0ea
Show file tree
Hide file tree
Showing 12 changed files with 4,478 additions and 0 deletions.
81 changes: 81 additions & 0 deletions client/client.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
ESX, COOLDOWN = Config.esxImport(), nil

RegisterNetEvent('esx:playerLoaded',function(xPlayer)
ESX.PlayerData = xPlayer
end)

RegisterNetEvent('esx:setJob', function(job)
ESX.PlayerData.job = job
end)

RegisterCommand(Config.Command, function()
if not Config.CanOpen() then return end

OpenMainMenu()
end)
RegisterKeyMapping(Config.Command, Strings.cmd_desc, 'keyboard', Config.Key)
TriggerEvent('chat:addSuggestion', ('/%s'):format(Config.Command), Strings.cmd_desc, {})

CreateThread(function()
local pedCoords
::loop::
if DATA_SETTINGS.booster then
pedCoords = GetEntityCoords(cache.ped)
DisableOcclusionThisFrame()
SetDisableDecalRenderingThisFrame()
RemoveParticleFxInRange(vector3(pedCoords.x, pedCoords.y, pedCoords.z), 10.0)
OverrideLodscaleThisFrame(0.4)
SetArtificialLightsState(true)
ClearAllBrokenGlass()
LeaderboardsReadClearAll()
ClearBrief()
ClearGpsFlags()
ClearPrints()
ClearSmallPrints()
ClearReplayStats()
LeaderboardsClearCacheData()
ClearFocus()
ClearHdArea()
ClearPedBloodDamage(cache.ped)
ClearPedWetness(cache.ped)
ClearPedEnvDirt(cache.ped)
ResetPedVisibleDamage(cache.ped)
ClearPedLastWeaponDamage(cache.ped)
ClearExtraTimecycleModifier()
ClearTimecycleModifier()
ClearOverrideWeather()
DisableVehicleDistantlights(false)
DisableScreenblurFade()
SetRainLevel(0.0)
SetWindSpeed(0.0)
end

Wait(2000)
goto loop
end)

DATA_ROUTE = {}
CreateThread(function()
local pedCoords
::loop::
pedCoords = GetEntityCoords(cache.ped)
for k, data in pairs(DATA_ROUTE) do
if data.time - 1 < 1 then
SetBlipRoute(data.blip, false)
RemoveBlip(data.blip)
DATA_ROUTE[k] = nil

Config.Notification(nil, Strings.navi_timeout)
elseif #(vector3(data.coords.x, data.coords.y, data.coords.z) - vector3(pedCoords.x, pedCoords.y, pedCoords.z)) < Config.Navigation.checkFinish then
SetBlipRoute(data.blip, false)
RemoveBlip(data.blip)
DATA_ROUTE[k] = nil

Config.Notification(nil, Strings.navi_reached)
else
DATA_ROUTE[k].time -= 1
end
end
Wait(1000)
goto loop
end)
Loading

0 comments on commit e63e0ea

Please sign in to comment.