In it, put the following text using your favorite text editor: fx_version 'cerulean' game 'gta5' author 'An awesome dude' description 'An awesome, but short, description' version '1.0.0' resource_type 'gametype'. Make a file called a (this is always Lua, even if you'll be writing scripts in C#/JS later on) in your mymode folder. Since this is a game type, it'll need some extra information as well to teach mapmanager about the fact that this is a game type. Manifest filesĪ resource folder (you know, this mymode you made above) will need a manifest to be detected by FiveM. We'll call this folder mymode from now on. That means you'll need to have a folder like this by now, assuming a Windows development system: C:\your\path\to\cfx-server-data\resources\\mymode. In there, we'll make a resources//mymode folder, since we're making, well, a gametype using the mapmanager system. If you're working on your own resources, you'll probably want to make a resources/ directory - this one will be ignored by Git when updating the server-data root. ![]() Your server-data folder (assuming you already installed a server) should have a resources folder already, with a few resources in them already. ResourcesĪ resource is, simply said, a collection of files that can be individually started, stopped and restarted. ![]() In this quick and simple guide, we'll try to show you how to get started with a quick resource in Lua. Getting started with scripting for FiveM might be a tad overwhelming, given the wide range of possibilities and the sparsely spread documentation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |