Commit Graph

263 Commits

Author SHA1 Message Date
Linden 3fe1f438df chore(server): Update error messages and manifest 2021-10-26 02:26:44 +11:00
Linden e3c7e5ce5c feat(server): Utilise transactions to reduce server load 2021-10-26 00:58:10 +11:00
Linden c9749c0b40 refactor(server): Remove redundant local values and check result size 2021-10-26 00:20:59 +11:00
Linden 4f3ce99e94 refactor(config): Remove redundant values from being stored on server 2021-10-26 00:19:49 +11:00
Linden 8255fa2014 feat(deferrals): Prevent connection when identifier is in use
Only recently came to my attention that this was a concern. Since ESX and identity only check a raw identifier vs a player identifier (which contains a prefix) it doesn't prevent multiple logins.
2021-10-25 15:47:57 +11:00
Linden 870e1887b0 Update fxmanifest.lua 2021-10-23 11:58:59 +11:00
Linden ebae4354ce fix(server): Correctly resolve database name for URI connection strings
URI-connection strings would incorrectly parse the database name when using additional options as part of the string (i.e. "ESXLegacy?charset=utf8mb4").
Correctly check for these options and match the string accordingly.

Also just better pattern matching in general.
2021-10-23 11:58:18 +11:00
Linden 565c5d0e35 Update readme.md 2021-10-18 07:33:01 +11:00
Linden c1b36cf51f Merge pull request #55 from DokaDoka/master
fix(sql): fix disabled user column query
2021-10-16 12:24:42 +11:00
DokaDoka 7995739cec fix(sql): fix disabled user column query 2021-10-16 10:06:33 +11:00
Linden 749dfd0ec3 chore(config): Change defaults 2021-10-16 09:05:13 +11:00
Linden d594c5db82 chore(manifest): Update versions 2021-10-16 09:04:38 +11:00
Linden f46277e262 feat(server): Improve GetJobs function
- If using an ESX version with the getter, use it instead for better performance
- General refactor and ensure compatibility with oxmysql
2021-10-16 09:03:31 +11:00
Linden 95e9f2bbe8 feat(server): Parse mysql_connection_string for database 2021-10-16 08:43:51 +11:00
Linden 2164f3db72 style(commands): Indentation 2021-10-16 08:34:55 +11:00
Linden ae41811d42 Delete functions.lua 2021-10-16 08:34:34 +11:00
Linden ef87a916ac fix(client): Entity coords should no longer set you into the ground 2021-10-16 08:34:14 +11:00
Demetrio a4d7d17251 Minor fixes and compatibility improvements (#54) 2021-10-16 08:32:54 +11:00
Linden 54245704c5 fix(sql): Add disabled user column back and change to TINYINT
- Accidentaly removed it; change this to TINYINT for consistency
2021-10-16 08:31:45 +11:00
Linden a1cb26da5d feat(sql): Setup proper keys and collation
- These fields should only be referenced, so index them for faster queries
2021-10-16 06:37:34 +11:00
Linden 1984ef58a5 Update readme.md 2021-09-03 19:46:30 +10:00
Linden d412efab05 fix(client)? Maybe resolves issue with concealing players 2021-09-01 16:17:05 +10:00
cjosephdc 6427a58ac7 Fix for stuck players (#45)
Fix the issue where players get stuck after selecting character
2021-08-25 21:38:26 +10:00
IceCubePiso 6925f91a1e Update cs.lua (#44) 2021-08-21 03:06:47 +10:00
Demetrio 5f5b0138f0 feat(chars): enable or disable a specific character of a player (#43) 2021-08-21 00:56:48 +10:00
Demetrio e65a4cb181 Italian language support + Doc for dynamic slots and minor improvements (#37)
* Added Italian language support + usability improvements

* cleaner sql file

Co-authored-by: d3rp-jsx <15928886+derp-jsx@users.noreply.github.com>
2021-08-11 09:33:40 +10:00
Demetrio 52250d0d49 Dynamic slots (#36)
* Removed slots configuration

* feature: dynamic slots

* fixes + improvements

* edited core functionality

* added commands for slots management

* added commands english locale

Co-authored-by: d3rp-jsx <15928886+derp-jsx@users.noreply.github.com>
2021-08-11 03:31:30 +10:00
Demetrio 248b6e0b92 improvement: configurable character deletation (#35)
Co-authored-by: d3rp-jsx <15928886+derp-jsx@users.noreply.github.com>
2021-08-10 00:54:32 +10:00
Linden 0ec17f081e fix: Close UI when setting up characters; spawn fallback position
- If playerData.coords don't exist then there's an issue with that character

- Instead of erroring out, spawn them at the character selection area

todo: setup default spawn location instead of relying on database
2021-08-02 22:13:36 +10:00
Linden b5b5f56a2b Improvement: Set the camera position offset from the entity
- Modifying the spawn location would previously require adjusting the camera parameters.

- This, along with the previous camera change, ensures the camera is always facing the ped
2021-07-26 21:22:17 +10:00
Linden 7bf9367135 tweak: Move fadeout check until after the spawnmanager export 2021-07-26 21:10:59 +10:00
Linden 9dbe1c5cbe fix: Ensure character is deleted on the server before refreshing client 2021-07-26 21:00:13 +10:00
Linden 83bae12c0f fix: Ensure screenfades last long enough to hide transitions; set local variable for finish (new characters) 2021-07-26 21:00:13 +10:00
Linden 9480853f6a improvement: New players now select skin before teleporting to spawn
- This also resolves the bug with esx_skin's camera being zoomed in
2021-07-26 21:00:13 +10:00
Linden 657dcc7728 tweak(client): Modify camera behaviour and positioning 2021-07-26 21:00:13 +10:00
Linden 5f142f6d1f chore: Update screenshot in readme 2021-07-26 20:42:00 +10:00
Linden 861dfcda88 Update main.lua 2021-07-21 13:30:44 +10:00
Linden 5dcae7c4c5 Update readme.md 2021-07-09 19:39:15 +10:00
Linden e7090e6a7d fix(client): Enable and and right arrow keys while loop is active
Due to hidePlayers now waiting until a skin has been set before disabling, these keys are now required.
2021-06-29 19:24:56 +10:00
Linden c97daae2a9 improvements(client): Hide HUD components while active; refactor 2021-06-29 10:48:01 +10:00
Linden f3eb335547 refactor(server): Should be using Async here 2021-06-28 18:54:50 +10:00
Linden d6c7e10594 improvements(client): Disable spawnmanager auto spawning 2021-06-28 18:13:54 +10:00
Linden b081008863 improvements(client): Fix nil value; overhauled most of the character selection and spawning logic 2021-06-28 00:27:34 +10:00
Linden 7332a64ef6 improvements(client): Overhauled most of the character selection and spawning logic 2021-06-27 18:05:50 +10:00
Linden 7acd7bc5a0 feat(server): Set VARCHAR(60) automatically; improvements to SQL.ready functions 2021-06-27 13:29:11 +10:00
Linden 698397fcb2 tweak(client): Move SetupCharacters Server trigger; added locales 2021-06-27 12:55:54 +10:00
Linden 11dc502acc tweak(client): Always wait 200ms after esx_menu_default has started 2021-06-26 13:54:54 +10:00
Linden 482139aa4a fix(server): Display the correct job/grade for each character 2021-06-26 13:44:56 +10:00
Linden e9885a22f2 improvement(server): Changed method to retrieve ESX.Jobs; do not define grade if unemployed; use ESX import for server 2021-06-26 05:30:57 +10:00
Linden 26b1a6856b fix(client): Set the player heading when moving to character selection 2021-06-26 05:19:56 +10:00