NBZ Nathan Bonavia Zammit

10 · Fixes · Fix

Emote Lock Near Doors

Small fix with a big effect. Players were abusing emotes and animations to clip through locked doors, so emotes are blocked near doors, and it's configurable per door so normal roleplay isn't hurt.

Role
Lua, ox_doorlock UI
Server
Skyland
Framework
ESX
Stack
Lua, ox_doorlock, rpemotes2
Status
Live on Skyland
A character at a building's glass front doors, with a red notification at the top right saying animations aren't allowed near a door
The door editor open over the same glass doors, with name and passcode fields, Locked and Double switched on, and Allow emotes switched off
An emote cancelled next to a locked door, with the warning notification 1 / 2

How it works

Start to finish

  1. A character at a building's glass front doors, with a red notification at the top right saying animations aren't allowed near a door
    The door editor open over the same glass doors, with name and passcode fields, Locked and Double switched on, and Allow emotes switched off
    An emote cancelled next to a locked door, with the warning notification 1 / 2

    01 — The watcher

    Cancel the emote, say why

    • A watcher cancels rpemotes animations when a player stands within 7.5 m of an ox_doorlock door (distance and check rate configurable) and tells them why.
  2. A character at a building's glass front doors, with a red notification at the top right saying animations aren't allowed near a door
    The door editor open over the same glass doors, with name and passcode fields, Locked and Double switched on, and Allow emotes switched off
    The ox_doorlock settings panel with the added Allow emotes toggle 2 / 2

    02 — The toggle

    Opt out per door

    • A per-door Allow emotes toggle in the ox_doorlock settings UI, saved with the door, so doors that don't need the protection can opt out.
    • Docs first: design spec and implementation plan written before the code, then the change landed across both resources.

Tech

Tech and package

  • Lua
  • ESX
  • ox_doorlock
  • Door resourceclient script, config, NUI
  • ox_doorlockthe settings UI change

Need something like this on your server?

Email me