2021-06-21 10:34:55 -05:00
2021-01-26 04:16:05 -06:00
2021-06-05 03:13:49 -05:00
2021-06-14 20:05:15 -05:00
2021-02-26 13:49:51 -06:00
2021-05-08 08:32:19 -05:00
2021-06-05 17:31:17 -05:00
2021-06-21 10:34:55 -05:00
2021-06-05 17:31:17 -05:00
2021-06-05 17:31:17 -05:00

Vortrex's Roleplay Resource

Description

This is Vortrex's Roleplay Resource

Git Branches

  • master/main - The current release. Never commit to this branch directly
  • nightly - The next upcoming release. All feature/fix/change branches are merged into this one
  • feature/fix/change - This is where the stuff currently being working on goes into.

Scripting Style

  • Always use camelCase, even for event names.
  • Use a util function where possible. Keep raw logic in command/event/network handlers to a minimum.
  • Keep opening curly brackets in-line. Don't linebreak before an opening curly brackets.
  • Use sentence case instead of adjacent uppercase letters in class/member names. (i.e. Id instead of ID)
  • Use generic, non-specific class member names wherever possible. (i.e. databaseId instead of accountId)
  • All communications from server to client are handled in server-side client.js script file via utils
  • All communications from client to server are handled in client-side server.js script file via utils
  • All server events are handled in event.js script file, sometimes with utils.

Database Style

  • Always use lowercase.
  • Shorten prefix names to four characters or less (i.e. acct=account, veh=vehicle)
  • Add an underscore between each word
  • Append _main to any tables that store primary data (i.e. acct_main, ban_main, etc)
  • Prefix field names with the table name, except for _main tables (i.e. acct_id, job_loc_id)
  • Tables use primary index on their ID column.
  • Tables use both secondary indexes & cascading foreign key links to any ID that points to another table

Notes

  • The resource is designed to load the script files first, then initialize after that's done.
  • The IDEAS.md file is not a to-do list. It's just a random file to throw ideas into when they come to mind.
  • Delete the row containing the bug or idea from the database once you've scripted and tested it and it works.
Description
Vortrex's Roleplay Resource for GTA/Mafia MP mods
Readme Apache-2.0 8.4 MiB
Languages
JavaScript 100%