Mam problem z napisaniem, mam colorpickera i chcialbym aby w stworzonym cuboidzie gdy stoi tam pojazd po wybraniu koloru zmienia mi ten kolor pojazdu
local edit = createMarker (-2384.98,2367.17,4, "cylinder", 1.5, 255, 255, 0, 170 )
addEventHandler("onClientMarkerHit", edit , function(plr)
if plr == localPlayer then
exports.N:openPicker(source, "#FFAA00", "Pick a color for some editbox:")
end
end)
addEventHandler("onColorPickerChange", root,
function(element, hex, r, g, b)
setVehicleColor(element, r, g, b)
end)
|