local marker_1=createMarker(0,0,2,"cylinder", 1,0,0,255,100)
addEventHandler("onClientMarkerHit", marker_1, function(player)
setElementData(player,"spray:color", 0x0000FF)
end
)
function mal(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement)
if source~=localPlayer then return end
if (weapon~=41) then return end
if not hitElement then return end
if (hitElement and getElementType(hitElement)=="vehicle") then
local kolor_spray=getElementData(localPlayer,"spray:color") or 0
if (kolor_spray) then
setVehicleColor(hitElement, math.floor(kolor_spray/65536), math.floor(kolor_spray/256%256), math.floor(kolor_spray/256%256))
end
end
end
addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), mal)