Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: medycznej
1. Skrypt torby medycznej R1
Siemka posiadam skrypt torby R1 problem polega na tym ze po wyci?gnieciu jej z karetki torba zostaje w miejscu zamiast przyklei? si? do gracza w skrypcie jest bone_attach ale co? jest nie tak a ?e skrypt nie jest m?j nie rozumiem co. dodam jeszcze ?e w swoj? przygod? z lua dopiero zaczynam i je?li mo?na prosi? bym o do?? ?opatologiczne wyja?nienie problemu


serwer

[lua]local tbl={}

-- [1878]="torbaz",
-- [1877]="torbao",

local isPR=(
function(plr)
if (getElementData(plr,"PR:ranga") and (getElementData(plr,"frakcja")=="PR") and getElementData(plr,"PR:sluzba")) or (getElementData(plr,"PSP:ranga") and getElementData(plr,"PSP:sluzba")) or (getElementData(plr,"OSP:ranga") and getElementData(plr,"OSP:sluzba")) then
return true
end
return false
end
)


addEvent("ev",true)
addEventHandler("ev",resourceRoot,
function(ev,arg1)
if (ev=="wez_torbe") then
local ma_torbe=false
if (#tbl==0) then
ma_torbe=false
else
for i,v in ipairs(tbl) do
if (v.plr==client) then
ma_torbe=v
end
end
end
if ma_torbe then
if not ma_torbe.polozona then
if ma_torbe.torba and isElement(ma_torbe.torba) then
destroyElement(ma_torbe.torba)
end
for i,v in ipairs(tbl) do
if (v.plr==client) then
table.remove(tbl,i)
break
end
end
...