diff --git a/[core]/es_extended/client/modules/actions.lua b/[core]/es_extended/client/modules/actions.lua index 455dcff0..89d3c0ba 100644 --- a/[core]/es_extended/client/modules/actions.lua +++ b/[core]/es_extended/client/modules/actions.lua @@ -136,7 +136,6 @@ end function Actions:SlowLoop() CreateThread(function() while ESX.PlayerLoaded do - self:TrackPed() self:TrackPedCoords() self:TrackPauseMenu() self:TrackVehicle() @@ -145,8 +144,19 @@ function Actions:SlowLoop() end) end +function Actions:PedLoop() + CreateThread(function() + while ESX.PlayerLoaded do + self:TrackPed() + Wait(0) + end + end) +end + + function Actions:Init() self:SlowLoop() + self:PedLoop() end Actions:Init() diff --git a/[core]/esx_identity/.gitignore b/[core]/esx_identity/.gitignore new file mode 100644 index 00000000..a547bf36 --- /dev/null +++ b/[core]/esx_identity/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/[core]/esx_identity/fxmanifest.lua b/[core]/esx_identity/fxmanifest.lua index 2b56fdf9..52121774 100644 --- a/[core]/esx_identity/fxmanifest.lua +++ b/[core]/esx_identity/fxmanifest.lua @@ -23,12 +23,11 @@ client_scripts { 'client/main.lua' } -ui_page 'html/index.html' +files ({ + 'dist/assets/**', + 'dist/**', +}) -files { - 'html/index.html', - 'html/js/script.js', - 'html/css/style.css', -} +ui_page 'dist/index.html' dependency 'es_extended' diff --git a/[core]/esx_identity/html/index.html b/[core]/esx_identity/html/index.html deleted file mode 100644 index 1eb7d932..00000000 --- a/[core]/esx_identity/html/index.html +++ /dev/null @@ -1,85 +0,0 @@ - - - -
- - - - -Start by creating your identity
- -Start by creating your identity
+ +