-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e63e0ea
Showing
12 changed files
with
4,478 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.