You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 1, 2025. It is now read-only.
Emre Kara edited this page Jun 25, 2021
·
1 revision
How do I even use a command?
Here you have two possibilities.
ChatAPI Resource
This package uses the same event as the command system in the ChatAPI ("chat:message").
That means you should be able to use commands like you'd do in the C# chat resource.
Direct call
You can use AltV.Net.Alt.Core.ExecuteCustomCommand:
usingAltV.Net;// The command prefix is optional hereAlt.Core.ExecuteCustomCommand(player,"/kick Player1 30 This is my reason");Alt.Core.ExecuteCustomCommand(player,"kick Player1 30 This is my reason");