To execute a command from TriggerEvent?

Hello to all

can you execute a command without going through the dialog box … example Triggerevent … / car.

Thank you for your reply.

Place whatever /car does inside a function, then call it at the command handler and instead of TriggerEvent().

1 Like
RegisterCommand("car", function(source, args)
    -- code or TriggerEvent('')
end)
1 Like

thank you very much for your answers, I appreciate very much that you responded.

thank you very much for your answers, I appreciate very much that you responded. :wink: