Vehicle Light
#1

Hi everybody,

Today i have a little problem but I don't know how to fix it, but i think it's easy ^^.

So i explain, when I put vehicle lights ON, I have only one light ON and the other is OFF.

Screen:



Can you help me ?
Reply
#2

You have this function?
pawn Код:
// props to whoever wrote this function
stock encode_lights(light1, light2, light3, light4) {
    return light1 | (light2 << 1) | (light3 << 2) | (light4 << 3);
}
Use it in your SetVehicleParamsEx funtion and set all lights to 1.
Reply
#3

I do that ?
pawn Код:
SetVehicleParamEx(vehid,engine,lights,doors,bonnet,boot,objective);
encode_lights(1,1,1,1);
If no, can you show me an example ?
Reply
#4

up ! i really need this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)