Spawn a vehicle in front of me

Hello,
I would like to know how to make a vehicle appear in front of me and not on me once bought? For example a helicopter which appears with the command "spawnhc UH1Y"
Thank you

Hello,
I have noticed that more and more plugin designers no longer deign to answer user questions, regardless of the website where the questions are asked. And that's how we get stuck even if we bought the plugin.

From my point of view this has nothing directly to do with the plugin, but console use.. Here you go:

entity.spawnhere [entity] [distance]Spawn an entity nearby at the specified distance away from the player
MrBl4ckw0lf

From my point of view this has nothing directly to do with the plugin, but console use.. Here you go:

entity.spawnhere [entity] [distance]Spawn an entity nearby at the specified distance away from the player
I think that might be just what I've been looking for. I have just tried to spawn a scrap heli as a player and it killed me instantly becaused it spawned on top of me. I used this type of command in the reward_data.json and replaced the minicopter with the scrap heli to test it:-

    "Spawn Minicopter": {
      "description": "Spawn a Minicopter in front of you",
      "iconName": "https://i.imgur.com/lBrmjoD.png",
      "commands": [
        "spawn minicopter.entity $player.x,$player.y,$player.z"
      ],
      "displayName": "Spawn Minicopter",
      "cost": 500,
      "cooldown": 0
    }​

I came here to see if I could somehow add 2 or 3 to the x and z co-ords but found the command you suggested instead. I'll have to wait until tomorrow to test this out, but thank you very much for the info.



Merged post

I don't know why, but "entity.spawnhere" and "spawnhere" doesn't work unless you're an admin, whereas "spawn" does. 😐