Search results
13 kwi 2020 · Example uses: ExecuteCommand( "restart IDontWork" ) ExecuteCommand( "stop IDontWork" ) 1 Like. MrFrk April 13, 2020, 6:36pm 3. I might be none of my business, but if you have a script that only works after restarting it, creating another script just to restart the first one, doesn’t sound like a good solution.
Creating your first script in Lua. Getting started with scripting for FiveM might be a tad overwhelming, given the wide range of possibilities and the sparsely spread documentation. In this quick and simple guide, we'll try to show you how to get started with a quick resource in Lua.
Console commands can be executed either using an RCon tool, directly from the server console interface, a server configuration file, the server command line, or (if a resource is allowed by the ACL) the [ExecuteCommand]({{% native "EXECUTE_COMMAND" %}}) function.
Global commands. exec [filename] Runs the commands specified in the filename, relative to the server data directory, or any resource name specified with @. Commonly seen as FXServer.exe +exec server.cfg. Example: exec server_nested.cfg. exec @vMenu/config/permissions.cfg. quit.
To use Lua, just use .lua in your scripts file extensions. A modified version of Lua 5.3 is used in FiveM, called CfxLua. This version includes some of the modifications the Grit game engine introduced: Support for relative path literals. Support for vectors & quaternions.
Runs the commands specified in the filename, relative to the server data directory, or any resource name specified with `@`.
15 cze 2024 · Getting started with scripting for FiveM might be a tad overwhelming, given the wide range of possibilities and the sparsely spread documentation. In this quick and simple guide, we’ll try to show you how to get started with a quick resource in JavaScript. Prerequisites.