DropPlayer
DocsDropPlayer(playerSrc, reason)Parameters
| Name | Type | Description |
|---|---|---|
playerSrc | char* | — |
reason | char* | — |
Returns
voidThis native does not return a value.
DropPlayer(playerSrc, reason)| Name | Type | Description |
|---|---|---|
playerSrc | char* | — |
reason | char* | — |
voidThis native does not return a value.
-- Kick player with reason and Discord link
QBCore.Functions.Kick(source, "Suspicious activity detected")Enhanced DropPlayer wrapper: appends the Discord invite link from QBCore.Config.Server.Discord, supports deferrals (for connection screen), and retries the kick up to 5 times to ensure disconnection.
No snippets yet. Be the first to contribute!