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: medyczna
1. Torba medyczna R1
Witam posiadam kod na R1 a wi?c problem polega na tym ze jak podejde do karetki i wpisze /torba to nie dzia?a.... mam bone_attach aha i jak ma ktos textury to prosze o podes?anie
Kod:[lua]
function weztorba (plr)
local login = getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..login,aclGetGroup("Pogotowie", plr)) then
local auto = getPedOccupiedVehicle(plr)
if isPedInVehicle(plr) then
if (getElementModel(auto) == 489) or (getElementModel(auto) == 407) or (getElementModel(auto) == 416) then
local torba = createObject(1210, 0, 0, 0, 0, 0, 0)
setElementData ( plr, "torba", torba)
exports.bone_attach:attachElementToBone(torba,plr,12,0,0.1,0.3,0,180,0)
outputChatBox("** Bierzesz torb? medyczn?", plr)
outputChatBox("** "..login.." wyci?ga torb? medyczn? z pojazdu", root)
end
end
end
end
addCommandHandler("torba", weztorba)
-------------------------------------------------
function odloztorbe(plr)
local login = getAccountName(getPlayerAccount(plr))
if isObiectInACLGroup("user."..login,aclGetGroup("grupa_acl", plr)) then
local auto = getPedOccupiedVehicle(plr)
if isPedInVehicle(plr) then
if (getElementModel(auto) == 407) or (getElementModel(auto) == 489) or (getElementModel(auto) == 416) then
local torba = getElementData ( plr, "torba")
destroyElement(torba)
outputChatBox("** Chowasz torb? medyczn?", plr)
outputChatBox("**...