Thumbnail
Script Overview
This script allows players to approach a vehicle, target the nitrous item, and initiate a progress bar. Once the progress is complete, the vehicle will have nitrous installed, providing an enhanced driving experience.
Code Implementation
Here’s the implementation of the nitrous script for your FiveM server:
6 Likes
Thats cool, would it be possible to make this compatible with ox/qbox?
Can you make it ox_target ready?
1 Like
You can make it by yourself. Just use chat gpt. The AI will change u everything
I have changed sucessfully to ox_target bit i have a new problem
[ script:es-nitrous] SCRIPT ERROR: @es-nitrous/server.lua:12: attempt to index a nil value (field ‘Functions’)
[ script:es-nitrous] > ref (@es-nitrous/server.lua:12)
[ script:es-nitrous] > handler (@es_extended/server/modules/callback.lua:19)
[ script:es_extended] SCRIPT ERROR: error object is not a string
Callback('Owner', function(source, cb, plate)
local Player = Framework.Functions.GetPlayer(source)
local citizen = Player and Player.PlayerData.citizenid
local result = MySQL.single.await('SELECT * FROM owned_vehicles WHERE plate = ? AND citizenid = ?', {plate, citizen})
cb(result ~= nil)
end)
im working with “NewESX”
nice but can i ask which ls custom mod u are using it is nice