FiveM_Snippets/README.md

1.5 KiB

CSTMGames FiveM Snippets

A collection of custom Lua snippets for FiveM development.

Features

  • SLF logging snippets
  • Event helpers
  • Thread templates
  • Common FiveM utilities

Snippet Usage

Type a snippet prefix and press Ctrl+Space.

Resource Generator Usage

This is an INTERNAL USE ONLY tool for generating a FiveM Resource using our structure that we have outlined during the GCONFIG update. This will produce you a folder with the correct naming schemes, folder structure, and settings to allow for a plug and play experience. Edit what you need to and remove/add anything you need to the provided files. If you have any updates/request for thing in the generator let Chase know so he can get it in a plugin update and get that uploaded to the repository.

Right click on your resources folder in your explorer window on the left hand side of your screen and select "Generate FiveM Resource From Template" and follow the prompts on the screen and it will create the following folder structure and fill out the fxmanifest.lua with the info provided.

├── RESOURCE CODE
│   ├── fxmanifest.lua
│   ├── initConfig.json
│   ├── SERVER
│   │   ├── server.lua
│   ├── CLIENT
│   │   ├── client.lua
│   ├── MENUS
│   │   ├── readme.txt

Disclaimer

Yes you can indeed make a resource folder yourself. Yes this is a fair bit cheating, but this ensure that the files you are starting with are a good foundation to work from and you are less likely to trip and mess up.