Remove/Edit Vehicle Extras C# Scripting
If you modify extras in Menyoo and save the file, you might get something like this to remove the top of the tourbus
So the equivalent would then be:
Function.Call(Hash.SET_VEHICLE_EXTRA,Vehicle1, 2, 0);//where 2 is extra number, 0 means false
The correct function is
Function.Call(Hash.SET_VEHICLE_EXTRA,Vehicle1, 2, 1);//where 2 is extra number, and 1 means false - not true!
So even though Menyoo saves it as false, the correct value is 1, which is normally associated with True value AFAIK.
In passing, this did not elude the brave men who decompiled and identified the natives.
p2 is not a on/off toggle. mostly 0 means on and 1 means off. not sure if it really should be a BOOL.
So parameter treated as boolean by Menyoo, but not Native? Just passing this on.
Menyoo corrects the value internally: https://github.com/MAFINS/MenyooSP/blob/7c4bcf003dc5e63846f13eb9abbf0ef81259d99a/Solution/source/Scripting/GTAvehicle.cpp#L1615
@Jitnaught Good to know. thank you.