1.1.6 • Published 1 year ago

fivem-template v1.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

FiveM TypeScript Template Generator

Introduction

This script helps you generate a FiveM TypeScript project template with support for Lua integration. It sets up a directory structure and initializes necessary configuration files.

Usage

  1. Run npx fivem-template@latest
  2. Follow the prompts to configure your project:
    • Project Name: Enter the name of your FiveM project.
    • Author Name: Enter your name or the author's name for package.json and fxmanifest.lua.
    • Enable Lua 5.4: Choose whether to enable Lua 5.4 support in fxmanifest.lua.
    • Include ESX Import: Choose whether to include ESX import in fxmanifest.lua.
  3. Once configured, the template will be generated in your current directory.

Common Issue

npm error code ETARGET
npm error notarget No matching version found for fivem-template@x.x.x
npm error notarget In most cases you or one of your dependencies are requesting
npm error notarget a package version that doesn't exist.

To fix this issue simply run the following command:

npm cache clean --force

Directory Structure

fx_version 'cerulean'
game 'gta5'

author '<Author Name>'
lua54 "yes"  -- or "no" based on user input

shared_scripts {
    -- Include ESX import if selected --
    'dist/shared/*.js',
    'dist/shared/*.lua'
}

client_scripts {
    'dist/client/*.js',
    'dist/client/*.lua'
}

server_scripts {
    'dist/server/*.js',
    'dist/server/*.lua',
}

License

Licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International License.

Useful Links

Github Repository NPM JS Discord

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago