Witam, mam taki problem ?e chcem zrobi? ?e je?li auto ma mniej ni? 500 hp to si? powinien attachowa? marker do niego.Pr?bowa?em zrobi? lecz nie wiem czemu mi nie dzia?a.
local marker = createMarker (-1753.71,885.03,295.88-1, "cylinder", 1.5, 0, 255, 0, 255)
local auto = getPedOccupiedVehicle(localPlayer)
if auto then
local hp = getElementHealth(auto)
if hp<500 then
attachElements (marker, auto, 0, 0, 0)
end
end
Na to:
local marker = createMarker (0, 0, 0, "cylinder", 1.5, 0, 255, 0, 255)
local auto = getPedOccupiedVehicle(localPlayer)
if auto then
local hp = getElementHealth(auto)
if hp<500 then
attachElements (marker, auto, 0, 0, 0)
end
end
Dzia?a tylko gdy zresetuje skrypt a chcem ?eby odrazu dawa?o, brak db3
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach