#Remove motorcycle helmet

1 messages · Page 1 of 1 (latest)

hollow cypress
#
lib.onCache('vehicle', function(value, oldValue)
    local isMotorcycle = GetVehicleClass(value) == 8
    if not isMotorcycle then return end

    SetPedHelmet(cache.ped, false)
    RemovePedHelmet(cache.ped, true)
end)

Add in any client side file/client.lua

This should remove or not have the player ped put on the helmet whenever they get on a motorcycle

pulsar agate
#

hey, where do i put that?

stone scarab
pulsar agate
lone perch
#

In any client side lua, put it in your small resources.

muted glen
#

If I put this in it gives an error expected to close if I put a comma after end it seems to work but then gives me this error.

lone perch
#

please just put it in your small resources at the very bottom

hollow cypress
#

Yes

forest coral
#

small resources/qbx_ignore/client.lua

#

thats whtere i put all mine. Right at the bottom.

rancid geyser
#

not work

drifting aspen