local function checkWhitelist(id)
for key, value in pairs(RepairWhitelist) do
if id == value then
return true
end
end
return false
end
AddEventHandler('chatMessage', function(source, _, message)
local msg = string.lower(message)
local identifier = GetPlayerIdentifiers(source)[1]
if msg == "/fix" then
CancelEvent()
if RepairEveryoneWhitelisted == true then
TriggerClientEvent('iens:repair', source)
else
if checkWhitelist(identifier) then
TriggerClientEvent('iens:repair', source)
else
TriggerClientEvent('iens:notAllowed', source)
end
end
end
end)
to
local function checkWhitelist(id)
for key, value in pairs(RepairWhitelist) do
if id == value then
return true
end
end
return false
end
AddEventHandler('chatMessage', function(source, _, message)
local msg = string.lower(message)
local identifier = GetPlayerIdentifiers(source)[1]
if msg == "/fix" then
CancelEvent()
if RepairEveryoneWhitelisted == false then
TriggerClientEvent('iens:repair', source)
else
if checkWhitelist(identifier) then
TriggerClientEvent('iens:repair', source)
else
TriggerClientEvent('iens:notAllowed', source)
end
end
end
end)
Hi !
local damageFactorEngine = 0.01 or 100.0 - this line doesnt work in config file . One hit and cars engine dead , no metter what i wrote in this line (
------------------------------------------
-- iEnsomatic RealisticVehicleFailure --
------------------------------------------
--
-- Created by Jens Sandalgaard
--
-- This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
--
-- https://github.com/iEns/RealisticVehicleFailure
--
local function checkWhitelist(id)
for key, value in pairs(RepairWhitelist) do
if id == value then
return true
end
end
return false
end
AddEventHandler('chatMessage', function(source, _, message)
local msg = string.lower(message)
local identifier = GetPlayerIdentifiers(source)[1]
if msg == "/repair" then
CancelEvent()
Citizen.Wait(10000) -- 10 second delay
if RepairEveryoneWhitelisted == true then
TriggerClientEvent('iens:repair', source)
else
if checkWhitelist(identifier) then
TriggerClientEvent('iens:repair', source)
else
TriggerClientEvent('iens:notAllowed', source)
end
end
end
end)
Hey all, Is there any way to fix the conflict with RealisticVehicleFailure and AIO Menu / Engine Off commands? I saw earlier that @SLuG fixed his issue with the engine script however he did not elaborate to how he did it. The fuel plugin we have successfully turns the engine off however any other script we use doesn’t work. Any help would be much appreciated.
We have tried running in Compat mode and loading RVF before and after and neither fixes our issue.
Im not sure what I did to fix it it just magically started working after a fivem update. It is back to doing the same thing though. Toggle engine OFF just kicks it right back on. During refueling the car just keeps trying to start over and over. Hoping one of these fivem updates will fix it lol
We are using FR Fuel and it is working perfectly with RVF however the AIO menu doesn’t keep the engine off. it turns on instantly. We tried changing the load order on the plugins to no resolve. Not sure what else we can do. Would be cool if we could find a way to implement an engine off command/script into RVF however idk how to go about that.
Thanks for that but this server.lua is making you wait 10 seconds per each /repair command. I was looking for only a wait at the mechanic location. The temp fix should be instant but the repair at the mechanic should be a 10 second wait. Also its not notifying users of the 10 second wait.
Looking to add more messages for when the mechanic fixes the vehicle, instead of the one. I attempted to modify it myself and failed. Anyway a new update can have them? Thanks.
how do I leave the engine off when using the command to repair the vehicle and wanted to know how do I change the rage that can use the command to repair the vehicle in mechanics I want to leave a rage smaller to be able to execute the command
the only think i got to switch off is a tyre burst because to fix tyre mecanic need to fix whole car
maybe someone can make script with item for fixing only tyres ?
that will be awesom
i cant do my self with my level of lua
Has anyone ever had this problem? Figured it was the “limp mode”, however it’s disabled and I can’t seem to figure out what it is, or what’s causing it.