Skip to content

Instantly share code, notes, and snippets.

@mrkarp
Created August 16, 2021 21:02
Show Gist options
  • Save mrkarp/ea388b3446c43212b36858b665b6c1a5 to your computer and use it in GitHub Desktop.
Save mrkarp/ea388b3446c43212b36858b665b6c1a5 to your computer and use it in GitHub Desktop.

Development Setup

Make sure to KeyGen

Keymaster

Create up to 3 keys for your server(s). Follow the register form to generate any needed keys.

Per FiveM:

Make sure you have registered a license key on the Cfx.re Keymaster service. You need to have the IP match the public IP on which you're going to first use the key. Afterwards, the key can be used on any IP, but only on one server at a time.

Server Setup

Follow the guide on your specific platform.

Setting Up A Server

Repository Setup

Clone the repo into your server/deploy directory, then update the server settings and append repo name via the txAdmin dashboard, this can be done via Git Bash, Git for Windows or VS Code's terminal.

Settings -> FXServer -> Server Data Folder e.g. /FiveM/server/deploy/.../3.0/resources/..

Create a new database and assign needed permissions and then import tables.sql to get the schema structure built.

Development Tools

Git Bash, VS Code, fivem-lua Extension, Fivem Natives Extension, Lua Extension

Docker Desktop

docker-compose.yml contains a mariadb service

.env contains names and creds

NUI Development

Uses HTML, CSS and JS

NUI Development

Local UI debugging

Local UI Debugging

Models and Names

Listing of Models and Hash names

The best wiki with examples

Kronzky Wiki

Jobs

Cement Deliver'r Industrial

Vehicle 1 Vehicle 2

Possibly run cement to the construction sites around Los Santos, possibly run cement to the developments east and neighborhoods east (Mirror Park and south), return to sender.

Trucking Trailer

Commercial

Yachts

As it sounds, run Yachts from the boat dealer to rich ass bitches tr3

Food / Goods trailers3/2/4
Rubble rubble
Resource

Same thing as others, only using the trailerlogs and baletrailer to deliver farming goods from the north to the south, return to sender.

Automotive

Car Delivery tr4

Empty Car Delivery tr2

Run cars to the shops around Los Santos, deliver and detach, drive around the block and pickup the empty trailer, return to sender.

Gasoline

Fuel Tanker tanker2

Deliver Gasoline to the gas stations around Los Santos, get paid per mile as its Hazard Pay, simple animation to refuel gas station, return to sender.

Garbage Person

As it sounds, get a garbo truck, run around packing it up, get paid per dumpster / cleanup, return to sender.

Scrap Runner

Vehicle

Run scrap from the scrapyards around Los Santos

Electrician Vans

Boxville

Running around Los Santons to repair junction boxes, power poles, houses, etc. that loose power. Couple of mini-games, connect the wire, throw the breaker, etc.

Can work in and out of the Power Plant and for Los Santos Dept. of Water & Power

Moving Company

Simple boxtruck usage to go from A <-> B and get paid.

Sewage Vans

Boxville

Running around Los Santons to repair manholes, erupted fire hydrants and more.

EMS

Already defined.

Cop

Already defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment