how to make car lights alltime turned on?
#1

hello guys .. i need help with car/veh lights to turn it allways on
exp at 12 : 00 o clock and something.. like this video
watch :O
its awesome work..
[ame="http://www.youtube.com/watch?v=gdMwE-l7Vvs"]http://www.youtube.com/watch?v=gdMwE-l7Vvs[/ame]
Reply
#2

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
Reply
#3

ok but how ?
Reply
#4

pawn Код:
SetVehicleLights(vehicleid, on)
{  
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,engine,on,alarm,doors,bonnet,boot,objective);
}
Reply
#5

Under onplayerentervehicle add this
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective);

Reply
#6

Or add that code under OnVehicleSpawn.
Reply
#7

thanks guys it works.. but when player enter in vehicle lights is turned on.. when exit lights turning on ? :O how to make alltime on ? !
Reply
#8

Put it under onvehicle spawn
Reply
#9

Thankya
____________
IP : 188.40.57.132:7777
Drift - Generation
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)