function pompa(plr)
local x,y,z = getElementPosition(plr)
for i,v in pairs(getElementsByType("vehicle",resourceRoot)) do
local x2,y2,z2 = getElementPosition(v)
if getElementModel(v) == 544 or getElementModel(v) == 407 then
triggerClientEvent("ap",root,x2,y2,z2)
return end
end
end
addEventHandler("onResourceStart",resourceRoot, pompa)
bindKey(source,"o","down",pompa)
function pompa(plr)
local x,y,z = getElementPosition(plr)
for i,v in pairs(getElementsByType("vehicle",resourceRoot)) do
local x2,y2,z2 = getElementPosition(v)
if getElementModel(v) == 544 or getElementModel(v) == 407 then
outputChatBox("dziala")
triggerClientEvent("ap",root,x2,y2,z2)
return end
end
end
addEventHandler("onResourceStart",resourceRoot, pompa)
bindKey(source,"o","down",pompa)
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