Hello I have created an event to use an item in another client script with oxinventory but I have this error can someone explain or help please ?
U are in a client and u registering a server callback
Where do you see Register server ?
Ah, yeah sry mb hahaha
Anyway in
if success then
TriggerEvent("Drilling:Start", function(success)
you need there a end)
I think like that
if success then
TriggerEvent('Drilling:Start', function(success)
if success then
-- code if success
else
-- code not success
end
end)
end
Thank you dude I fix the problem but now I want to add the sound of the drilling animation when it starts you know how to do that ?
Pff actually sry i have no idea for that
You could use
or something like that, FiveM docs are quite big, I’m sure you’ll find something interesting.
Thank you very much but I only found the pin break of the drilling, what I want is the sound of the drill when it starts and the ambient sounds i dont know if you see what Im sayin ?
I get what you mean. Well, you can use custom sound for drill. I’ve found script of some guy
and just use .mp3 or .ogg.
I’m not really sure if FiveM has library of sounds in-game. As far as I can see, you’ll need to do it manually.