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: setelemetposition
1. setElemetPosition
function spawn(thePlayer)
    if 
isObjectInACLGroup "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) then
        setElementPosition
(thePlayer870.70001220703, -2241.399902343844.599998474121 )
    
end
end
addEventHandler
("onPlayerLogin"getRootElement(), spawn)


B??d z debuga:
Kod:

gamemode/server/abase.lua:36: Bad argument @ 'getPlayerAccount' [Expected element at argument 1]

gamemode/server/abase.lua:36: Bad argument @ 'getPlayerAccount' [Expected account at argument 1, got boolean]

gamemode/server/abase.lua:36: attempt to concatenate a boolean value


Co jest ?le w kodzie?