2020-10-11 02:19:53 +02:00
2020-10-11 02:19:53 +02:00
2020-10-07 16:11:00 -04:00
2020-09-07 22:59:34 +02:00
2020-10-07 16:11:00 -04:00
2020-08-27 18:08:50 -07:00
2020-10-09 22:00:01 -04:00

New Phone README TITLE

TODO

Production Server Installation

TODO

Development

This phone is a React project with a LUA client/server environment.

Prerequisites

The development environment assumes you have the following prerequisites:

  1. A windows environment and Powershell as your default terminal
  2. Git for windows installed
  3. LTS node.js installed
  4. yarn package manager installed (npm install -g yarn)
  5. A fivem environment that is set up according to the setting up a server instructions from the fivem documentation

Development Environment

Steps

  1. Clone the repo into your server-data/resources/[local] folder
  2. Go into the react project: cd phone
  3. Install node dependencies: yarn install
  4. Install lint-staged globally `npm i -g lint-staged
  5. Add the new-phone-who-dis app to your server.cfg
  6. Start your fivem server

Development iteration cycle:

  • If iterating on client/server LUA make your change and then restart new-phone-who-dis in the fivem server terminal
  • If iteration on UI changes run the project with yarn watch which will monitor the JavaScript project and rebuild when you make code changes and then restart new-phone-who-dis after making your change
  • Avoid commiting index.html as the development version overrides the production version
S
Description
NPWD is a FiveM phone resource written entirely in TypeScript and React. It is currently a WIP and is not ready for production use.
Readme
10 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 97.8%
JavaScript 1.2%
CSS 0.5%
Lua 0.4%