Guten abend Liebe Leute ich habe mal eine frage bei mir klapp das nicht so richtig ich versuche eine Drohne zu scripten aber ürgen wie klappt das nicht richtig Help
Lua
function Drohne ( player )
if vioGetElementData ( player, "job" ) == "pionier" and isArmy ( player ) then
if not vioGetElementData ( player, "exp" ) then
vioSetElementData ( player, "expTimer", true )
setTimer ( vioSetElementData, 60000, 1, player, "expTimer", false )
local x, y, z = getElementPosition(pElement);
x = x + 5;
y = y + 5;
local drohne = createVehicle(501, x, y, z);
warpPlayerIntoVehicle(pElement, drohne);
outputChatBox ( "!!Drohne Aktive!!", player, 125, 0, 0 )
else
outputChatBox("Du kannst eine Drohen nur alle 1 minuten rufen!", pElement);
end
else
outputChatBox ( "Du bist nicht befugt!", player, 125, 0, 0 )
end
end;
addCommandHandler("drohne", Drohne);
Alles anzeigen
Dank an alle die mir helfen auch an die nur lesen