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);
}
Did not work
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?
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "s" ) return print( player.Pos );
}
I finally succeeded.
Thank you guys