Slap & Groin-Kick
Commands
Commands
All command names are editable via Config.Commands in config.lua. Defaults below.
Player commands
/slap
Plays the slap animation on you and the nearest player in front of you (within 3.0m). Sound radiates to everyone within 30m.
| Property | Value |
|---|---|
| Permission | Everyone (or admin-granted only if Config.RequirePermission = true) |
| Cooldown | 2 minutes (VIPs skip the cooldown) |
| Target | Closest player in front, within 3.0m |
Doesn't work when:
Config.Enabled = false→ "Funcion deshabilitada"Config.RequirePermission = trueand player isn't granted → "No tienes permiso para usar este comando"- Target is a VIP → silently fails (no notification)
- Target is yourself → silently ignored
- Cooldown active → silently ignored (VIPs always skip)
/patada
Same flow as /slap, but plays a groin-kick animation instead.
| Property | Value |
|---|---|
| Permission | Everyone (or admin-granted only if Config.RequirePermission = true) |
| Cooldown | 2 minutes (separate counter from /slap; VIPs skip) |
| Target | Closest player in front, within 3.0m |
Admin commands
/slapperm <id> <on|off>
Grants or revokes per-player permission to use /slap and /patada. Only relevant when Config.RequirePermission = true — otherwise everyone can use them regardless.
| Property | Value |
|---|---|
| Permission | Config.AdminGroup (default group.admin) |
| Persistence | Saved by license, survives restarts when Config.PersistGrants = true |
| Visible in F8 | Yes — registered with chat suggestions, hidden from non-admins |
Examples:
/slapperm 5 on # grants permission to player ID 5
/slapperm 12 off # revokes permission from player ID 12
Notifications:
- Admin sees: "Permiso otorgado a {playerName}" / "Permiso removido de {playerName}"
- Granted player sees: "Un admin te otorgó permiso para /slap y /patada"
- Errors: "Jugador no encontrado", "No se encontró la license del jugador", "Acción debe ser "on" o "off""
Right-click options (ox_target / qb-target)
When Config.UseTarget = true, two options appear when targeting any player ped within 3m:
| Option label | Icon | Effect |
|---|---|---|
| Bofetear | hand | Same as /slap on the targeted ped |
| Patada | shoe-print | Same as /patada on the targeted ped |
Same cooldown, same permission gate, same VIP rules — they all share the same logic as the chat commands.
