Is there a way to get the scuba diving gear to work, if so can someone tell me or be made something that works in the base game.
Thanks
Is there a way to get the scuba diving gear to work, if so can someone tell me or be made something that works in the base game.
Thanks
what do you mean by that? do you want it to hold you breath for a longer amount of time`? you can add that by checking the player ped, and adding it so it would’t take the health before a certain amout of time
You have to be the Michel character and make sure you put the correct gear on
Citizen.CreateThread(function()
while true do
Wait(0)
local diverPed = {
--Put the diverped inside here like
"diverped name",
-- you can also add all the peds you want it on here!
}
local ped = GetPlayerPed(-1)
if checkSkin() then
if IsPedSwimmingUnderWater(ped) then
SetPedDiesInWater(ped, false)
end
end
function CheckSkin(ped)
for i = 1, #diverPed do
if GetHashKey(skins[i]) == GetEntityModel(ped) then
return true
end
end
return false
end
end
end)
Remember this is just a quick code i did so dont expect it to be error free 
I have not tried this but shouldn’t the re-breather item work in fivem?
I’m sure you could add it into a script and make it work in any game mode if it does work. not sure though.
rebreather does not work i tried that. you get the “SFX” for it , and maybe the air drains slower but i dont think so .
For a working scuba gear you either use :
SetPedMaxTimeUnderwater(Ped ped, float value) OR , what I did , which is actually alot easier,
you can just give a ped the “scuba tank” Model part. THat one automaticly sets the underwater time to unlimited as long as you have it on. However it can only be equipped while the ped is swimming/underwater and it automaticly gets dropped as soon as you hit solid land. That method works obviously just with Freemode peds
Thats actually interesting. never knew about that stuff. i wonder if theres away to say change the flags of the scuba tank so that ped does not take it off. though modified clothes and such i dont think is possible in fivem yet
dont think it is i played around with it ALOT xD but who knows , unless you can somhow force it ?
Seems FiveM is using the GTA singleplayer codes at that point and that automaticly drops the gear as soon as you hit land. you can also do SetEnableScuba(Ped ped, BOOL toggle) while the ped is underwater/wearing the scuba gear, that way they get the "diving " animation set which also speeds it up by like 1-2 MPH
Searched 2 words: Diving FiveM.
The way this script works: It’s gives your player a skin either with a breathelizer or the scuba gear. And it extends the lenght of your diving ability to a certain amount of time with those 2 natives:
SetEnableScuba(GetPlayerPed(-1),true)
SetPedMaxTimeUnderwater(GetPlayerPed(-1), 400.00)
Rebreather only works for the Michael Skin thats the problem.
I did not add any script for this, but the scuba gear works perfectly for me (oxygen tank and mask together) - with all my characters, mp peds inclusive.
how do i make them
Scuba gears etc. are part of the vmenu.
i cant find in vmenu
I did this once with vRP, because it was easy to swap clothes with custom clothes shops. I placed one at boat docks int he city on the boat ramp to the water by the emergency helipad.
If you change the clothes to the scuba gear you can breathe forever. Only catch is you have to change clothes underwater, don’t ask me why but the game can tell if you on dry land and he auto removes the gear
good luck
As mentioned above, the scuba gear is part of the clothes. Should be “Shirts & Accessory 123” in clothes menu (MP), you need to put it on in water!
Here is a working one !! [Release] [ESX] clothesmerfik | put on/take off your clothes - #59 by manolo2106
What number is the scuba gear on f1 menu
this has fire gear, scuba gear, bomb gear and other stuff