CLEO Help Get other players car's headlights state (turned off/on)

CLEO related
Status
Not open for further replies.

Rough

Active member
Joined
Mar 7, 2015
Messages
42
Reaction score
4
Is there a way to check if streamed players have their headlights turned off/on? Thank you!
 

[RP]Foolish

Active member
Joined
Mar 18, 2020
Messages
68
Reaction score
36
Location
sea
According to the Memory Addresses (SA), vehicle pointer + 1424 (or 0x584 in HEX) = headlight state

PHP:
:IS_VEHICLE_HEADLIGHTS_ON
{
    if 0AB1: @IS_VEHICLE_HEADLIGHTS_ON 1 car_handle 0@
    then
        //car headlight value is greater than 0
    end
}
0A97: 31@ = car 0@ struct
if 31@ <= 0
then 059A:  return_false
end
0A8E: 31@ = 31@ + 0x584
0A8D: 30@ = read 31@ sz 4 vp 0
if 30@ > 0
then 0485:  return_true
else 059A:  return_false
end
0AB2: 0
 
Last edited:

Rough

Active member
Joined
Mar 7, 2015
Messages
42
Reaction score
4
According to the Memory Addresses (SA), vehicle pointer + 1424 (or 0x584 in HEX) = headlight state

PHP:
:IS_VEHICLE_HEADLIGHTS_ON
{
    if 0AB1: @IS_VEHICLE_HEADLIGHTS_ON 1 car_handle 0@
    then
        //car headlight value is greater than 0
    end
}
0A97: 31@ = car 0@ struct
if 31@ <= 0
then 059A:  return_false
end
0A8E: 31@ = 31@ + 0x584
0A8D: 30@ = read 31@ sz 4 vp 0
if 30@ > 0
then 0485:  return_true
else 059A:  return_false
end
0AB2: 0

You sir, are a golden person. Thank you very much!
 
Status
Not open for further replies.
Top