Hey Guys
I wanna create a command that easily lets players spawn for instance a car. The only problem im having right now is that the car spawns at location x:0 y:0 z:0 which makes sence. But is there a way that I can let the car spawn a the players location. I have this atm:
{
"Command": "car",
"Messages": [
"You have succesfully spawned a car!"
],
"Permission": "customchatcommands.car",
"ConsoleCmd": ["spawn sedantest.entity $player.x,$player.y,$player.z"],
"UserID": 0,
"Broadcast": false,
"RconCmd": ["spawn sedantest.entity $player.x,$player.y,$player.z"],
"Cooldown": 0.0,
"MaxUses": 0
},
I saw the "$player.x,$player.y,$player.z" part in another post but that doesnt seem to do anything :'(
I wanna create a command that easily lets players spawn for instance a car. The only problem im having right now is that the car spawns at location x:0 y:0 z:0 which makes sence. But is there a way that I can let the car spawn a the players location. I have this atm:
{
"Command": "car",
"Messages": [
"You have succesfully spawned a car!"
],
"Permission": "customchatcommands.car",
"ConsoleCmd": ["spawn sedantest.entity $player.x,$player.y,$player.z"],
"UserID": 0,
"Broadcast": false,
"RconCmd": ["spawn sedantest.entity $player.x,$player.y,$player.z"],
"Cooldown": 0.0,
"MaxUses": 0
},
I saw the "$player.x,$player.y,$player.z" part in another post but that doesnt seem to do anything :'(