SA-MP Forums Archive
Colored Flashing lights - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Colored Flashing lights (/showthread.php?tid=417147)



Colored Flashing lights - zT KiNgKoNg - 19.02.2013

I would like to make a few commands that allow my players to attach flashing lights to their cars when they wan't too after buying them, But i don't know how too i've looked into this and got
Quote:

encode_lights

. But i don't know what the hell it does, Help would be grate full


Re: Colored Flashing lights - MP2 - 19.02.2013

encode_lights is for UpdateVehicleDamageStatus/OnVehicleDamageStatusUpdate. It's for vehicle headlights. It converts some numbers to binary to be used in those functions. It has nothing to do with 'attaching' a light to a vehicle. You need AttachObjectToVehicle (and CreateObject of course). See the wiki.


Re: Colored Flashing lights - zT KiNgKoNg - 20.02.2013

Well i would like blinking lights but i don't know how that why ive posted this