Jump to content

Ayuda


Recommended Posts

hola, como puedo hacer que cuando ponga un comando como por ejemplo baseggc, me teletransporte con auto y todo a las coordenadas? el que tengo me warpea pero no con auto, aqui el script:

addCommandHandler ( "baseggc", 
    function ( thePlayer ) 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ( "user.".. accName, aclGetGroup ( "G.G.C" ) ) then 
            setElementPosition ( thePlayer,  -2023.7476806641,-859.02844238281,32.171875, true ) 
        end 
    end 
) 

Saludos!! :D

Link to comment
addCommandHandler ( "baseggc", 
    function ( thePlayer ) 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ( "user.".. accName, aclGetGroup ( "G.G.C" ) ) then 
            local toWarp = ( isPedInVehicle ( thePlayer ) and getPedOccupiedVehicle ( thePlayer ) or thePlayer ) 
            setElementPosition ( toWarp,  -2023.7476806641,-859.02844238281,32.171875, true ) 
        end 
    end 
) 

Link to comment
addCommandHandler ( "baseggc", 
    function ( thePlayer ) 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ( "user.".. accName, aclGetGroup ( "G.G.C" ) ) then 
            local toWarp = ( isPedInVehicle ( thePlayer ) and getPedOccupiedVehicle ( thePlayer ) or thePlayer ) 
            setElementPosition ( toWarp,  -2023.7476806641,-859.02844238281,32.171875, true ) 
        end 
    end 
) 

Funciona!! Gracias Solid :D:wink:

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...