NIKO_19997 Posted April 1, 2015 Share Posted April 1, 2015 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!! Link to comment
Castillo Posted April 1, 2015 Share Posted April 1, 2015 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
NIKO_19997 Posted April 1, 2015 Author Share Posted April 1, 2015 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 Link to comment
Recommended Posts