Vehicle Flags

Bugman

Active member
Joined
Aug 14, 2014
Messages
68
Reaction score
0
Hello

How can i set the invulnerable flags for the vehicle?

0xBA18FC + 66 wont work.

plz help :eek:h_stop_it_u:
 

T3KTONIT

Well-known member
Joined
Sep 2, 2013
Messages
308
Reaction score
5
PHP:
void SetVehicleFlags(unsigned char FLAG)
{
unsigned int CurrentVehiclePointer = *(unsigned int*)0xBA18FC;
*(unsigned char*)(CurrentVehiclePointer + 0x42) = FLAG;
}

Add these values, and write the sum into 0x42
4 = bullet-proof
8 = fire-proof
16 = damage-proof (from collisions etc)
128 = explosion-proof



SetVehicleFlags(156);
 

Bugman

Active member
Joined
Aug 14, 2014
Messages
68
Reaction score
0
thank you for this
but its not working, with the player special flags it works.
if i use this pointer 0xB6F980 the same not work :/
:bawww:

what can be the problem?
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
I'm not sure but if i remember right, SA-MP patched invulnerable flags.
 

Palamantax3

Member
Joined
Mar 22, 2015
Messages
13
Reaction score
0
is there any way to do this
but i will not set the vehicle health to 1000 :D fast detectable
 
Top