Eddye 1 Posted August 26, 2018 For example, I want to kick a player, using: /kick id reason How I get id? Share this post Link to post Share on other sites
n0minal 41 Posted August 26, 2018 https://wiki.rage.mp/index.php?title=Entity::id Share this post Link to post Share on other sites
Hanvod 9 Posted August 27, 2018 (edited) В 26.08.2018 в 21:29, Eddye сказал: For example, I want to kick a player, using: /kick id reason How I get id? mp.events.addCommand("kick", (player, args)=> { *check if player is admin* args = args.split(" ") let id = parseInt(args[0]) let reason = args[1] mp.players.at(id).kick(reason) }) Edited August 28, 2018 by Hanvod 1 Share this post Link to post Share on other sites