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: niedzialają.
1. NOSZE - niedzialają.
Witam, posiadam nosze autorstwa IgorPL222. By?y pod SAMC, lecz zmieni?em na FDSA. Problem w tym, ?e normalnie wszystko cyka, opr?cz jednego. Gdy kolega z FDSA chce mnie wzi??? na nosze, pokazuje mu si?: "Ten gracz jest za daleko od Ciebie, b?d? nie jest na noszach!". Prosz? o rozwi?zanie.

[b]EDIT: Zapomnialem doda? kodu. Oto on: (s.lua)
Autor: IgorPL222
Nie zezwalam na usuwanie tej notatki :) [/b]

[lua]
local objectnosze = {}
local nosze = {}
local mrk = {}
local cols = {}
local timer = {}
resourceRoot = getResourceRootElement(getThisResource())

function dnosze(plr)
if getElementData(plr, "player:duty") == "FDSA" then
x,y,z = getElementPosition(plr)
x2,y2,z2 = getElementRotation(plr)
local veh = getPedOccupiedVehicle(plr)
if not veh then return end
mrk[veh] = createMarker(0, 0, 0, "cylinder", 2, 255, 0, 0, 50)
attachElements(mrk[veh], veh, 0, -4, -1)
objectnosze[veh] = createObject(1997, 0, 0, 0, 0, 0, 0)
setElementCollisionsEnabled(objectnosze[veh], false)
attachElements(objectnosze[veh], veh, 0, -1, -0.5)
outputChatBox("Dodano nosze do karetki!", plr, 255, 255, 255)
end
end
addCommandHandler("dnosze", dnosze)

function onMarker(plr)
if getElementData(plr, "player:duty") == "FDSA" then
outputChatBox("Aby wzi???/schowa? nosze wpisz: /wez-nosze", plr, 255, 255, 255)
setElementData(plr, "able:to:nosze", true)
end
en...