Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/MrDaGree/ELS-FiveM
Browse files Browse the repository at this point in the history
  • Loading branch information
lze3 committed Jun 23, 2020
2 parents 1dc6f2e + 0f4c133 commit 1720ced
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
20 changes: 0 additions & 20 deletions __resource.lua

This file was deleted.

5 changes: 2 additions & 3 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ Citizen.CreateThread(function()
while true do
for k,v in pairs(elsVehs) do
if(v ~= nil or DoesEntityExist(k)) then
if (GetDistanceBetweenCoords(GetEntityCoords(k, true), GetEntityCoords(GetPlayerPed(-1), true), true) <= vehicleSyncDistance) then
if #(GetEntityCoords(k)-GetEntityCoords(GetPlayerPed(-1))) <= vehicleSyncDistance then
if elsVehs[k].warning or elsVehs[k].secondary or elsVehs[k].primary then
SetVehicleEngineOn(k, true, true, false)
end
Expand Down Expand Up @@ -848,10 +848,9 @@ end)


Citizen.CreateThread(function()

while true do
for k,v in pairs(elsVehs) do
if (v ~= nil and DoesEntityExist(k) and GetDistanceBetweenCoords(GetEntityCoords(k, true), GetEntityCoords(GetPlayerPed(-1), true), true) <= vehicleSyncDistance) then
if v ~= nil and DoesEntityExist(k) and #(GetEntityCoords(k)-GetEntityCoords(GetPlayerPed(-1))) <= vehicleSyncDistance then
SetVehicleAutoRepairDisabled(k, true)

if getVehicleVCFInfo(k) == false then
Expand Down
23 changes: 23 additions & 0 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
fx_version 'bodacious'
games { 'gta5' }

author 'MrDaGree'
description 'ELS FiveM'
version '1.7.0'

client_script {
'vcf.lua',
'config.lua',
'client/**/*.lua'
}

server_script {
'vcf.lua',
'config.lua',
'server/server.lua',
'server/xml.lua'
}

shared_script 'shared/*.lua'


0 comments on commit 1720ced

Please sign in to comment.