qbcore-framework / qb-weapons

Weapon Logic Script For QB-Core :gun:
GNU General Public License v3.0
29 stars 194 forks source link

The problem of a gallon of gasoline does not expire #69

Closed evanillaa closed 2 years ago

evanillaa commented 2 years ago

The problem of a gallon of petrolcan does not expire And when it ends, it reproduces itself It fills up again

memojustone commented 2 years ago

are u mean petrolcan ?

ogidevs commented 2 years ago

Hey, I have fixed this problem, feel free to make a pr on this:

client.lua: https://pastebin.com/bM4sUKCY

server.lua: https://pastebin.com/Ct39vQFu

The problem was that IsPedArmed function does not recognize petrolcan / fire ex. etc. as weapons, so this was a workaround i came up with.