How to know my coordinates?

Started by darlan, Nov 06, 2017, 02:17 AM

Previous topic - Next topic

darlan

Can someone tell me, how do I get my coordinates in the game?

I want to add new cars to my server

!

function onPlayerCommand( player, cmd, text ){
   if (cmd == "s" && player.Vehicle) return MessagePlayer( "Vector-X: "+player.Vehicle.Pos.x+", Vector-Y: "+player.Vehicle.Pos.y+", Vector-Z: "+player.Vehicle.Pos.z+",  Angle: "+player.Vehicle.Angle, player);
   if (cmd == "s") return MessagePlayer( "Vector-X: "+player.Pos.x+", Vector-Y: "+player.Pos.y+", Vector-Z: "+player.Pos.z+",  Angle: "+player.Angle, player);
}

Discord: zeus#5155

darlan


!


Discord: zeus#5155

darlan


No error, but nothing happens when I execute the command

!

Quote from: darlan on Nov 09, 2017, 07:17 PMNo error, but nothing happens when I execute the command
Are you sure?

Discord: zeus#5155

Milos

function onPlayerCommand( player, cmd, text )
{
if ( cmd == "s" ) return print( player.Pos );
}

darlan


I finally succeeded.

Thank you guys