TC ScriptDocumentation

Troubleshooting

Frequent tc-contextmenu errors: the menu does not open, an option does not show, /gestioncontexte refused.

#The cursor does not appear

  • Check that tc-contextmenu and tc-ui are started.
  • The default key is Left Alt (LMENU). Check in Settings → Key Bindings → FiveM that no other shortcut uses it.
  • With Config.OpenMode = 'hold', you must hold the key.
  • If another script disabled the cursor (disable(true)), call exports['tc-contextmenu']:disable(false).

#Right-click opens nothing

  • There may be no option for that target. With the built-in pack (Config.Pack.Enabled = true), players, vehicles and objects already have options.
  • Check Config.RayDistance and Config.DefaultDistance: the target may be too far from your character.
  • Aim at a specific object rather than empty space: the highlight shows what is targeted.

#My option does not show

CauseCheck
Wrong target typetypes / target.types: a ped is not a player
Model not listedmodels: add the exact name or hash
Condition not metrequire: job / grade, item, onDuty, inVehicle…
Distancedistance (or Config.DefaultDistance)
Option disabledEnabled switch in /gestioncontexte
Script not startedCode options disappear when the script stops

Use Capture a target in /gestioncontexte to fill in the exact type and model automatically.

#/gestioncontexte is refused

See General installation: ACE command for your group, or your identifier in Config.Bridge.Admins, or the permission from Config.ManageAce if you set one.

#A server_export action does nothing

The server re-validates everything from the definition in the database: job, items, ACE, distance and model. If one does not match, the action is refused. Raise Config.ServerDistanceTolerance if distance is the cause.

#An action cannot be created

The type may be disabled in Config.AllowedActionTypes. Set it back to true.

#Vision pack options missing

On Vision, “staff” and “dev” options depend on core permissions (contextmenu, dev, devcontextmenu…). On other frameworks only generic options are offered and admin is checked by the server (ACE / group).

#Performance

The script should cost nothing at idle. Measure with resmon 1 (F8): if tc-contextmenu consumes while the menu is closed, check that no other script calls its exports in a loop.

Last updated : 7 November 2026© 2026 TC Script