Commit Graph

4619 Commits

Author SHA1 Message Date
Linden 181508cbf2 fix: minor fixes
Incorrect table indexes.
Don't send empty parameters in queries.
Incorrect use of MySQL.scalar.await.
2022-01-19 21:14:47 +11:00
Linden dbb7da7755 fix(esx): save player loadout 2022-01-19 20:58:20 +11:00
Linden 98b0d2b4b1 fix(policejob): misplaced )
Also renamed nl localisation file to .sql because that's what it is.
2022-01-19 20:58:20 +11:00
DokaDoka 48ce1b7425 refactor: use oxmysql plus general improvements
refactor(vehicleshop): rewrite PayRent

chore(vehicleshop): enable lua 5.4

refactor(vehicleshop): convert mysql-async to oxmysql

refactor(vehicleshop): improve loops and make functions more generic

refactor(society): convert mysql-async to oxmysql

refactor(lscustom): convert mysql-async to oxmysql

refactor(addonaccount): convert mysql-async to oxmysql

refactor(billing): convert mysql-async to oxmysql

fix(identity): broken locale function

refactor(identity): convert mysql-async to oxmysql

refactor(ambulancejob): convert mysql-async to oxmysql

refactor(datastore): convert mysql-async to oxmysql

refactor(policejob): convert mysql-async to oxmysql
2022-01-19 20:58:20 +11:00
Linden f4d7991b10 refactor(esx): various changes
Minor improvements to spawning.
Moved internal variables out of the ESX namespace.
SavePlayer function now uses a prepared statement.
Replaced bulk SavePlayers query with prepared statements.
Cleaned up newPlayer/loadPlayer queries.
Player load and creation functions use prepared statements.
Removed async dependency.
2022-01-19 20:58:20 +11:00
Linden ed6d2b3b14 chore: include database.sql
Full database dump for easy setup.
2022-01-19 20:58:20 +11:00
Linden cc1fd54fb0 refactor(menu): minor optimisation tweaks
It's not much since that would require a rewrite, which is not happening.
2022-01-19 20:57:23 +11:00
Linden 138fdcc7ad refactor(status): various changes
Replaced mysql-async.
Resolved bug with the getStatus event.
Replace bulk query with prepared statement.
Minor optimisation tweaks.
2022-01-17 04:59:37 +11:00
Linden 5050e3aa12 refactor: replace mysql-async with oxmysql
additional change: removed esx_multicharacter
2022-01-17 04:57:17 +11:00
Naifen || Developer 0e09d4ad2a Update: Copyright year 2022 2022-01-15 02:19:31 +01:00
Naifen || Developer c467bde7ed Update README.md | Copyright 2022 2022-01-13 00:40:36 +01:00
FuraXx 3b05a12e48 Merge pull request #42 from etherealth/patch-1
fix weapon_combatmg_mk2 Locales['en']
2022-01-13 00:03:05 +01:00
FuraXx dc909b2994 Merge pull request #49 from xrtw/patch-1
noo need
2022-01-12 23:37:38 +01:00
FuraXx 79770cdacd Merge pull request #25 from Konraaaad/patch-2
update esx billing de.lua
2022-01-12 23:32:24 +01:00
Naifen || Developer 931bbbafe2 Reworked | ESX Billing de.lua 2022-01-12 20:06:49 +01:00
FuraXx 4c76499e0f Update README.md 2022-01-12 16:03:22 +01:00
FuraXx b99d4afaa4 Update README.md 2022-01-12 16:03:03 +01:00
Linden 02352a8e18 Merge pull request #63 from nightowlsrp/patch-1
removed margin-right to just use "right" value
2021-12-14 17:34:50 +11:00
Night Owls Roleplay d6a56057d8 removed margin-right to just use "right" value
Removed margin-right as "right" handles this usage just fine and margin messes with the actual container.
2021-12-13 22:08:43 -08:00
Linden 874eeef86c fix(server): connection string parser 2021-12-02 01:48:22 +11:00
xrtw e35e4d1237 the f** its still there? 2021-11-21 22:40:27 +02:00
Linden 150ec165fc fix(server): clone and wipe the playerlist when restarting the resource
Since we're looping through the table, we end up trying to index new values as they are added.
2021-11-21 17:26:29 +11:00
Linden 6a7d0ad56a update readme 2021-11-21 17:24:09 +11:00
Linden 6c7408b02e Update fxmanifest.lua 2021-11-12 18:49:13 +11:00
Linden 2635ce9fbb fix(server): added missing symbols 2021-11-11 07:26:37 +11:00
Linden e9250f15bd Merge pull request #57 from Olvidate/patch-1
fix(server): fixed error with identifiers
2021-11-09 14:12:22 +11:00
Linden e19f99fdca refactor(server): update deferral messages 2021-11-09 14:12:04 +11:00
Olvidate 8402cf4236 fix(server): fixed error with identifiers
Fixed error when you don't have a identifier, Steam open for example.
2021-11-08 18:55:42 -03:00
ethereal e92d3e30df fix weapon_combatmg_mk2 locales
remove duplicate Locales['en'] key
2021-11-01 22:58:39 +07:00
Linden a9960ef3f5 refactor: move server settings to config
Added support for sv_lan to allow use with FxDK.
Added support for ESX forks with Config.Identifier
2021-10-29 12:17:04 +11:00
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
d3rp-jsx 81119da365 perf: vector math over GetDistanceBetweenCoords native 2021-10-25 02:42:17 +02:00
d3rp-jsx aa9f527bbd perf: jenkins hashing over GetHashKey native 2021-10-25 02:31:23 +02: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