Player — using a crutch item
- Get a
crutchitem in your inventory (bought, given, prescribed). - Use the item to toggle the crutch on. Your walk style switches to the configured
clipSet(move_lester_CaneUpby default). - Use the item again to put it away.
Config.TimeUsedBeforeDelete times (default 5) before the item breaks and is removed from the inventory. Each use shows a “uses left” message.
When the crutch refuses to come out
The script blocks crutch use in situations where it would look broken — each shows a chat message:| Block | Message |
|---|---|
| Ragdoll | You can’t use a crutch while you are in ragdoll! |
| Falling | You can’t use a crutch while you are falling! |
| In combat | You can’t use a crutch while you are in combat! |
| Dead | You can’t use a crutch while you are dead! |
| In a vehicle | You can’t use a crutch while you are in a vehicle! |
| Weapon drawn | You can’t use a crutch while having a weapon out! |
locales/en.lua.
Player — picking the crutch back up
When you put the crutch down, it stays at your feet for a moment. Press the configured pickup key (default the FiveM “pickup” control) to put it back away. Walk away from it and it auto-cleans.EMS — prescribing a crutch
If your job is inConfig.AllowedJobs and you carry a crutch item:
- Look at a player within
Config.GiveDistance(5m default) → ox_target option Give crutch. - Confirm in the EMS menu (or
ox_libprompt ifConfig.UI.EmsMenu = false). - One crutch is taken from your inventory.
- The patient is force-equipped for
Config.ForceDurationseconds (10 minutes default).
Config.UI.PatientHUD = true.
If Config.ForceGiveItem = true, the patient also gets a crutch item in their inventory — useful so they can keep limping after the force lock expires.
EMS — removing a crutch
If your job is inConfig.AllowedJobs:
- Look at a player within
Config.RemoveDistance(5m default) → ox_target option Remove crutch. - The crutch is immediately unequipped and the force lock is cleared.
Hospital medic NPC
The NPC spawns at any configuredMedicLocations entry once the player walks within Config.SpawnDistance (60m default). A map blip shows wherever a location has blip.enabled = true.
Two interaction modes (set via Config.Interaction):
target (default)
Requires ox_target. Walk up to the NPC → third-eye option Remove Crutch. The option only shows if you currently have a crutch equipped.
textui
No ox_target needed. Walk within Config.TextUI.distance (2m default) of the NPC → ox_lib text prompt appears ([E] Remove Crutch). Press the configured key (default E, control id 38).
The removal flow
Config.ChargeMoney = false, the same flow runs without the money check. If the player can’t afford the removal, the dialog shows the notEnoughMoney notification and closes.
Patient HUD
When the patient is force-locked, an anchored HUD shows the time remaining. Anchor withConfig.UI.HUDPosition:
Config.UI.PatientHUD = false to hide it entirely.
