Skip to content

Instantly share code, notes, and snippets.

@ottworks
ottworks / sh_darkrp_commands.lua
Last active October 4, 2015 04:08 — forked from andreblue/sh_darkrp_commands.lua
A simple set of commands for use with maestro admin mod to do some common darkrp commands. Fixed up the code.
maestro.command("addmoney", {"player:target", "number"}, function(caller, targets, num)
if #targets == 0 then
return true, "Query matched no players."
end
for i = 1, #targets do
local ply = targets[i]
ply:addMoney(num)
end
return false, "added $%2 to %1's wallet"
end, [[Gives a player money.]])
<style id="jsbin-css">
/* ghostClass */
.ghost {
opacity: .5;
background: #C8EBFB;
}