Guide

sv_scriptHookAllowed: Should You Keep It Disabled?

What sv_scriptHookAllowed does in server.cfg, its default of false, the FXServer docs' security warning, and how to check and change the line safely.

Short answer: leave it set to false. The official FXServer docs give false as the default and do not recommend true. They say that true "makes the server vulnerable to security issues."

Last checked: 5 December 2026

What does sv_scriptHookAllowed do?

The server commands reference describes it as a boolean with a default of false. Setting it to true "allows clients with Script Hook V to connect." The docs describe no other effect for this line.

Should you leave it disabled?

Yes, unless you have a specific reason and you have checked it. The docs mark true as "Not recommended." They do not say which security issues they mean, and they do not list which mods need the setting. This post does not guess at either.

How do I check the setting?

  1. Open server.cfg in your server-data folder. The server.cfg folder guide explains where that file goes.
  2. Search the file for sv_scriptHookAllowed.
  3. If the line says true, change it to:

`` sv_scriptHookAllowed false ``

  1. If the line is missing, the default applies. The docs list the default as false.
  2. Restart the server so that it reads the file again.

What this post does not cover

The docs do not say which client tools need this setting, and they do not give a test procedure for it. If you need to test a client-side tool, do that on a separate test server, and keep the live server on false.

Frequently asked questions

Is the default true or false?

The docs list the default as false.

Does the warning name the risks?

No. It says only that the setting "makes the server vulnerable to security issues."

Should I enable it to test a mod?

The docs give no test procedure for this setting. Keep the live server on false. Test on a separate copy if you must.

Sources

  • FiveM docs, Server commands (sv_scriptHookAllowed): https://docs.fivem.net/docs/server-manual/server-commands

FiveM.tools was founded with sponsorship from Nyru.