local function IsDrivingControlPressed()
return IsControlPressed(0, INPUT_VEH_ACCELERATE)
end
--these Values<-----
local NitroStart = false
local cooldown = false
local purge = false
local hasnitro = true
local nitrolevel = 100
-----------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(1000)
if not IsThisModelACar(GetEntityModel(GetVehiclePedIsIn(PlayerPedId()))) or
IsVehicleElectric(GetVehiclePedIsIn(PlayerPedId())) and IsPedInAnyVehicle(PlayerPedId(), true) then
hasnitro = false
else
hasnitro = true
end
end
end)
Code....
So I’m trying to pass these Nitrous values from Nos Resources Folder to my Hud Resources Folder
Both will be a client-side thing
Nos fxmanifest.lua File
fx_version 'bodacious'
game 'gta5'
name 'Nos'
description 'Nos System For Cars'
author ''
client_script 'client/utils.lua'
client_script 'client/ptfx.lua'
client_script 'client/boost.lua'
client_script 'client/purge.lua'
client_script 'client/trails.lua'
client_script 'client/main.lua'
server_script 'server/main.lua'
Hud fxmanifest.lua File
fx_version 'cerulean'
game 'gta5'
author ''
description 'Hologram Hud'
files {
'data/handling.meta',
'data/vehicles.meta',
'data/carvariations.meta',
'ui/**/*.*',
'ui/*.*'
}
client_script 'client.lua'
server_script 'server.lua'
data_file 'HANDLING_FILE' 'data/handling.meta'
data_file 'VEHICLE_METADATA_FILE' 'data/vehicles.meta'
data_file 'VEHICLE_VARIATION_FILE' 'data/carvariations.meta'
How do I do it the right way because I spent 5 hours trying so many methods and couldn’t get it