Script loaded just fine
In game is working just fine and people were able to join after i had a shit ton of flares out.
1 Like
Thanks lol its UGCC from http://www.brainless.us/
The script doesn’t give any errors, that’s the first thing I looked for when starting it, stopping it, restarting it, and when people try to log in. The error the users get when trying to log in gets is the same as you would get after a GTA V update and someone wasn’t updated yet (mismatch versions).
Maybe they have not updated? Or your server has not updated?.. From what ElusionPDX said It works for him no issues. It works with me, no issues. There is no reason this should give version mismatch It’s a very small resource…
Very nice script and has been long overdue!
Peter
28
very nice indeed. is it possible to add a function so you only can drop the flares when you have on selected and holding it in your hand?
Great WORK! <3
Any way to add it so its called by a trigger instead of just the E key so not every one can use it. That way the server owners can pick how its called via key bind or menu trigger or what ever fancy way they think of
Destiny
30
Kinda sucks that you can only drop them from a car… Not very realistic though. Would be much better if you physically had them in your hand and THEN you were able to drop them. I can drop them without even having any flares in my inventory. Anyone can drop them
Just change the hot key. For keyboard users, E is the horn. That or edit the code to not allow flares to be dropped when in a vehicle.
Destiny
32
I tried multiple hotkeys on E that aren’t even linked to a vehicle key… Also his code (to what i could quickly read) doesn’t even have a check for seeing if a player is in a vehicle or not?
Right, you would need to add that check
Destiny
34
Well , not really, because i want it NOT to work while in a vehicle…
Since it’s not there it still does it 
I don’t know the exact code, but basically
if IsPedInAnyVehicle(PlayerPedId(), false) then
do all the flare stuff
else
ShowNotification(“you can’t drop a flare from a vehicle.”)
end
Destiny
36
But even without it , it doesn’t even execute the flare code when outside a vehicle. So it wouldnt work at all ? If i were to use the native IsPedInAnyVehicle it would check if hes in a vehicle and THEN run the code , which it does already without the native… 
The reason it works without the native is simply because it’s not checking. You use the native to check whether or not the ped is in a vehicle or not and then do something with the information.
Destiny
38
Yeah i get that, but without the native it just works in a car, so by using the statement, wouldnt it just not work at all? Because you’re telling it to not function while in a vehicle? Or is that not how lua works?
As long as your script is unedited, it should work outside the car. Even with the strange issue I have, it works both in and out of a vehicle.
Destiny
40
Mine only works inside a vehicle (unedited). only drops flares when in a car pressing E. Won’t do nothing outside a vehicle…