19.02.2013, 23:36
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.