Problem with command

Hi im new to scripting,

I was fooling around in kaner his freeroam thing and tried to add a command:

server side:
http://hastebin.com/xuyipomavo.lua

client side:
http://hastebin.com/oyipuwemov.lua

I keep getting an error for this line:
TriggerClientEvent(“cuff”, tonumber(command[2]))

it just doesn’t send the event to the client?

oh and if I remove that line it just doesnt seem to execute the client side part

TriggerClientEvent always belongs for a player like this:

TriggerClientEvent("EVENT_NAME", player, param_1, param_2, param_3, ...)

In case of your problem there is no player object, and in freeroam the player object is source in the command function.
Change it this:

TriggerClientEvent("cuff", source, command[2])