Natives for GTA 5

Hi im looking for the blackout native that only turns out city lights (not the vehicle lights) i have seen it in Menyoo.asi.

I don’t think such natives exist, if you can’t find it at the link below then it’s probably a mod rather than an native.
https://runtime.fivem.net/doc/reference.html

Hello, @Syntasu

_SET_VEHICLE_LIGHTS_MODE #
// 0x1FD09E7390A74D54
void _SET_VEHICLE_LIGHTS_MODE(Vehicle vehicle, int p1);
p1 can be either 0, 1 or 2.

Determines how vehicle lights behave when toggled.

0 = Default (Lights can be toggled between off, normal and high beams)
1 = Lights Disabled (Lights are fully disabled, cannot be toggled)
2 = Always On (Lights can be toggled between normal and high beams)

AND

SET_VEHICLE_LIGHTS #
// 0x34E710FF01247C5A 0xE8930226
void SET_VEHICLE_LIGHTS(Vehicle vehicle, int state);
set’s if the vehicle has lights or not.
not an on off toggle.
p1 = 0 ;vehicle normal lights, off then lowbeams, then highbeams
p1 = 1 ;vehicle doesn’t have lights, always off
p1 = 2 ;vehicle has always on lights
p1 = 3 ;or even larger like 4,5,… normal lights like =1
note1: when using =2 on day it’s lowbeam,highbeam
but at night it’s lowbeam,lowbeam,highbeam
note2: when using =0 it’s affected by day or night for highbeams don’t exist in daytime.

??

Thats for vehicles…
Don’t think there are any streetlight natives. Menyoo probably has modded so you can manipulate streetlights.

Maybe I can run the blackout script that is the problem. that all vehicle light emissives are blacked out and dont turn on either. So would making a script that turns them on when you enter vehicle fix it? while keeping the blackout enabled.

I think I found the native you’re looking for. The only thing is I don’t think you can enable car lights.

https://runtime.fivem.net/doc/reference.html#_0x1268615ACE24D504

hi @Havoc see above post natives. i thought maybe i could force them to load after blackout mode resource loads? then enable a vehicle lights on resource?

Try it :slightly_smiling_face:. It’s probably the best way to figure out if you can do something.

hi again im also trying to find the weapon pickup hashes for weapons. I have searched all of web. no luck finding these. and i dont mean the 46873 ones. i mean the ones that start with 0x like this!

0x8967B4F3, – PICKUP_COMBATPISTOL
0xDF711959, – PICKUP_WEAPON_CARBINERIFLE
0x8F707C18, – PICKUP_HEALTH_STANDARD
0x4BFB42D1, – PICKUP_ARMOUR_STANDARD
0x96B412A3, – PICKUP_SAWNOFFSHOTGUN
0x789576E2, – PICKUP_COMBATPDW
0x2DD30479, – PICKUP_MOLOTOV
0xF9DCBF2D – HATCHET - MAY CAUSE PROLBEMS

any help is greatly appreciated!

What? Have you even tried to look?

The native to give a weapon to a ped gives you a nice link to a translation table.

https://pastebin.com/a39K8Nz8

There’s also a massive table on the se7ensins website.

1 Like

I actually found what i was looking for!
this!
https://wiki.fivem.net/wiki/Weapons