[Request] Fire Hose/Water Gun/Water Hose/Stronger Fire Extinguisher

I am looking for one of the three following options.

1: Working Fire Hose And Nozzle
2: Working Water gun that works like the deck gun of a default gta 5 firetruck, just comes out of a weapon.
3: A More Powerful fire extinguisher.

you can contact me at [email protected]

1 Like

For your requests, it may be possible, if you know what you’re doing of course.

Go and have a look through the following natives.

WATER
https://runtime.fivem.net/doc/reference.html#_n_WATER

WEAPON
https://runtime.fivem.net/doc/reference.html#_n_WEAPON

To be more specific try this.

SET_PLAYER_WEAPON_DAMAGE_MODIFIER
https://runtime.fivem.net/doc/reference.html#_0xCE07B9F7817AADA3

1 Like

I created this a long time ago:

it’s very messy and the splash on the ground is very buggy as it’s a separate particle effect from the main water stream, however it does kind of look like “fire hose” effect you might be looking for.

It doesn’t actually interact with the world, so you can’t put out fires with it or blow people/props away, but it might be just enough for others to make something that actually works out of it.

After some digging, i found this piece of code that was used to make this video above:

local dict = "core"
local particle = "water_cannon_jet"
--local particle = "water_cannon_spray"
local ped = PlayerPedId()
local x,y,z = table.unpack(GetEntityCoords(ped, true))
local xx,yy,zz = table.unpack(GetEntityForwardVector(ped))
xx = xx * 5
yy = yy * 5

    local pressed = false
Citizen.CreateThread(function()
    RequestNamedPtfxAsset(dict)
    while not HasNamedPtfxAssetLoaded(dict) do
         Citizen.Wait(0)
    end
    print('\n[PARTICLES] Finished loading particle dictionary (' .. dict .. ').')
    
    local particleEffect = 0
    UseParticleFxAssetNextCall(dict)
    --particleEffect = StartParticleFxLoopedOnEntity(particle, ped, 0.0, 0.0, 0.0, 0.1, 0.0, 0.0, 1.0, false, false, false)
    while true do
        Citizen.Wait(0)
        if GetSelectedPedWeapon(ped) == GetHashKey('WEAPON_FIREEXTINGUISHER') and (IsControlJustPressed(0, 24) or IsDisabledControlPressed(0, 24)) and not pressed then
            pressed = true
            UseParticleFxAssetNextCall(dict)
            particleEffect = StartParticleFxLoopedOnEntity(particle, ped, 0.0, 0.0, 0.0, 0.1, 0.0, 0.0, 1.0, false, false, false)
        end
        if GetSelectedPedWeapon(ped) == GetHashKey('WEAPON_FIREEXTINGUISHER') then
            DisablePlayerFiring(PlayerId(), true)
            DisableControlAction(0, 24, true)
            if pressed then
                SetParticleFxLoopedOffsets(particleEffect, 0.0, 0.0, 0.0, GetGameplayCamRelativePitch(), 0.0, 0.0)--GetEntityHeading(PlayerPedId()))
            end
        end
        if (IsControlJustReleased(0, 24) or IsDisabledControlJustReleased(0, 24)) and pressed then
            StopParticleFxLooped(particleEffect, 0)
            pressed = false
        end 
    end
end)

function PlayEffect(pdict, pname, posx, posy, posz)
    Citizen.CreateThread(function()
        UseParticleFxAssetNextCall(pdict)
        local pfx = StartParticleFxLoopedAtCoord(pname, posx, posy, posz, 0.0, 0.0, GetEntityHeading(PlayerPedId()), 1.0, false, false, false, false)
        Citizen.Wait(100)
        StopParticleFxLooped(pfx, 0)
    end)
end

Citizen.CreateThread(function()
    while true do
        if pressed then
            Citizen.Wait(100)
            SetParticleFxShootoutBoat(true)
            local off = GetOffsetFromEntityInWorldCoords(PlayerPedId(), 0.0, 12.0 + GetGameplayCamRelativePitch()* 0.4, 0.0)
            local x = off.x
            local y = off.y
            

            -- DrawLine(x, y, 0.0, x, y, 800.0, 255, 0, 0, 255)
            local _,z = GetGroundZFor_3dCoord(x, y, off.z)
            -- DrawLine(x, y, z - 0.2, x, y, z + 0.2, 255, 0, 0, 255)
            Citizen.Wait(GetGameplayCamRelativePitch())
            PlayEffect("core", "water_cannon_spray", x, y, z)
        else
            Citizen.Wait(0)
        end
    end
end)

This is probably not what you’re looking for exactly since it doesn’t interact/do anything, but it might give you some idea of what to use if you are going to try to make this “work”.

1 Like

i know this post was a long time ago but does that hose still work i tried to put it in put its just the normal effect is it server or client.lua?

Client script, should work fine

How i put this script ?

I would be down to work & attempt a script with someone Bc I know I won’t be able to do it by myself! Just message me on here, also does anyone know the script that adds a water hose to the top of a XBR ladder truck?

Hello ; I put the code in client.lua but it does not work

1 Like

Hi! Hello there! I tried this script to create a corresponding model. But I don’t know if it’s a version issue or because it’s been a long time, this script is no longer working. Is there any way to solve this problem?:无辜: