basic-rp has commands for trying things out in the game chat (T, type, Enter). The test ones work only with this in m2o_server.ini:
[settings] devCommands=1
Don't turn it on on a real server: anyone could give themselves weapons.
| Command | What it does |
|---|---|
/me машет рукой | action, heard within 20 m |
/do на столе лежит пистолет | a description |
/try открыть дверь | an attempt: succeeds or not at random |
/b текст | out-of-character talk |
/gun 11 100 | weapon id 11 (Thompson) with 100 rounds, in hand |
/ammo | unlimited ammo |
/heal | full health |
/weather DTFreerideNight | weather for everyone (see the weather page) |
/freeze | controls locked for 5 seconds |
/hud | hide / show the HUD |
/fade | screen to black and back |
/anim sc_vito_wipe1 loop | an animation (see the animations page); /anim stops it |
/animothers sc_vito_wipe1 loop | the same on all other players |
/walk Drunk | a walk style (see the animations page); /walk - normal |
/hands 46 | items in the hands: left, right, [player id] (see the items page); /hands - empty |
/controls CS_NOATTACK | what your controls allow (see the control styles page); /controls - everything |
/mylabel текст | a label only you see (client labels.create); /mylabel removes it |
Your own commands
chat.registerCommand("tp", function(player, args)
local x, y, z = tonumber(args[1]), tonumber(args[2]), tonumber(args[3])
if x and y and z then player:setPosition(x, y, z) end
end)
-- in the game: /tp 69.6 909.1 -19.6