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: getelementposition
1. getElementPosition
Witam, za pomoc? getElementPosition moge pobrac koordy np gracza, ale czy np cos takiego przejdzie?

    if getElementPosition(lolo2043.611211536.9996310.67188then
        warpPedIntoVehicle
(loloauto)
2. Bindkey oraz getElementPosition
Witam, robi? sobie fajny skrypt na prywatne auta, tylko jeden problem. Nie wiem jak pobra? pozycje gracza po stronie serwera, pokazuje ?e brakuje elementu


local px
pypz getElementPosition(playerSource)
car createVehicle modelpxpypz0,0,0plate)




Oraz mam problem z bindem, nie chce on dzia?a? oto kod:

Kod:

local enter 
createPickup 2386.971441037.5539610.8203131239)    
inPickup false

function enterPickup(pickup,player)
        
outputChatBox("inPickup")    
        
inPickup true
end
addEventHandler 
"onPickupHit"enterenterPickup )

function 
enterInterior(player)
    if 
inPickup == true then
        outputChatBox
("inPickup and pressed E")    
        
inPickup false
    end
end

function test(player)
    
outputChatBox("Test")
    
bindKey (player"E""down"enterInterior )
end
addEventHandler
("onResourceStart"root,test)



Tutaj sam bind:


function test(player)
    
outputChatBox("Test")
    
bindKey (player"E""down"enterInterior )
end
addEventHandler
("onResourceStart"root,test)

3. getElementPosition
Witam hejter?w i spo?eczno??.

Taki kod nie dzia?a. DB3: attemp to concatenate global 'accName'(a nil Value) - czy co? takiego.


function pos()
x,y,getElementPosition(source)
outputChatBox(""..x..","..y..","..z..""source)
end
addCommandHandler
("posp"pos)


Czekam na (hejtersk?) pomoc.