Hi ich bins mal wieder ich habe ein kleines Problem und zwar wird das Auto nicht richtig attacht es ist Quer auf dem gate23 kann mir jemand helfen also so das das Auto nur auf 2 Reifen ist?
Und noch ne Frage wie kann ich ein Elemant unattachen?
Lua
local gate23 = createObject(8957, -1777, 1313, 21.5, 0, 90, 0 )
gate233 = false
addEventHandler("onElementClicked",gate23,
function( but, stat, thePlayer)
if(but == "left") and (stat == "down") then
if (gate233 == false) then
moveObject(gate23, 10000, -1777, 1313, 59, 0, 0, 0 )
gate233 = true
else
local veh = getPedOccupiedVehicle (thePlayer)
local x, y, z = getElementPosition (thePlayer)
local x2, y2, z2 = getElementPosition (veh)
attachElements ( veh, gate23, 0,0,-0.2)
moveObject(gate23, 5000, -1777, 1313, 21.5, 0, 0, 0)
gate233 = false
end
end
end)
Alles anzeigen
MFG ertlflorian1