Kakarot
02397cfc5a
Refactor player system and API
...
Large refactor of server/player.lua to modernize the player system and public API. Introduces a Player metatable with cleaner Player.Functions interface, offline player support, and centralized data validation/merge logic (CheckPlayerData, applyDynamicDefaults, merge/prune helpers). Adds unique ID generators, improved money logging/notifications, and safer save/delete flows (including ForceDeleteCharacter). Replaces old Login/Logout/CreatePlayer flows, exposes exports (GetPlayer, GetPlayerByCitizenId, GetOfflinePlayerByCitizenId, GetPlayerByLicense, GetOfflinePlayerByLicense, AddPlayerMethod, AddPlayerField) for runtime integration, and improves inventory and job/gang handling. Overall aims: clearer runtime API, offline lookups, and more maintainable player persistence and event synchronization.
2026-05-12 23:40:29 -05:00
Kakarot
7536889ccc
new method exp
2025-07-06 16:00:23 -05:00
Kakarot
6d09c49fe2
return on improper usage
2025-07-06 13:25:48 -05:00
Kakarot
446b984da4
backwards compat testing
2025-07-06 13:01:01 -05:00
Kakarot
33c6dc8ac8
more testing
2025-06-22 13:35:42 -05:00
Kakarot
28753848dc
remove more unneeded functions
2025-06-01 15:42:49 -05:00
Kakarot
8f883ccd2a
add more returns for validation
2025-06-01 15:19:33 -05:00
Kakarot
670ab320c7
cleanup file
2025-06-01 15:08:42 -05:00
Kakarot
669ce782dd
combine functions
2025-06-01 13:57:24 -05:00
Kakarot
1fefbe2363
remove weird functions
2025-06-01 13:55:51 -05:00
Kakarot
521327494c
metatable testing
2025-06-01 13:43:44 -05:00
Kakarot
eb4a573411
move paychecks
2025-06-01 13:14:11 -05:00
Kakarot
d88d91b9e3
updates
2025-05-11 19:05:51 -05:00
Kakarot
fe3847d591
Add json support
2025-05-10 11:42:14 -05:00
Kakarot
a437265c68
reset branch
2025-05-10 09:29:59 -05:00
Kakarot
11052e2aac
wip player creation with state and backward compat
2025-03-11 23:32:11 -05:00
Kakarot
66d94359f0
Editor command
2025-03-11 23:31:03 -05:00
Kakarot
6cd10e6424
Bring in some server functions
2025-03-11 23:15:39 -05:00
Kakarot
ae872278a3
Basic commands support
2025-03-11 23:13:00 -05:00
Kakarot
1b2c2aa88e
Basic server handling
2025-03-11 23:12:25 -05:00
Kakarot
e1024cd061
Remove old server files
2025-03-11 23:08:14 -05:00
Kakarot
73e80fbc7c
Merge branch 'main' into main
2025-03-09 14:23:30 -05:00
Miguel Oppermann
62e6a6f949
Update functions.lua
...
Fixed a bug that prevented paychecks from working forever once 0 players was hit which typically directly happens on server start.
2025-03-02 00:42:27 +01:00
Pickle
1ce2d445ee
Merge branch 'main' into main
2025-02-02 21:28:02 -05:00
Kakarot
9adb33b970
Core object filtering + exported functions/data
...
Maintains backwards compatibility and allows users to only get what they need from the core instead of importing it all
2025-01-25 00:36:31 -06:00
Borre
e90fa91102
TP with heading support
...
Added support for the heading argument when using the /tp command.
2025-01-24 19:27:01 +01:00
Pickle
ebae2c35f7
Update functions.lua
2025-01-12 14:13:07 -05:00
Cocodrulo
6f6bcf0321
Merge branch 'main' into feature/getname
2025-01-08 21:09:08 +01:00
Cocodrulo
e288b742c8
Add function to retrieve player's full name from character data
2025-01-08 13:25:07 +01:00
Zerio
d08d7bbeba
chore: remove accidental automatic format changes
2025-01-07 07:21:50 +01:00
Zerio
8ab5f76bdf
feat: simply funcref check
2025-01-07 07:20:53 +01:00
Zerio
8660c98d49
fix: wrong args passed
2025-01-06 21:41:53 +01:00
Zerio
dc8fbf04e9
feat: use promises in callbacks + cleanup
2025-01-06 21:31:23 +01:00
Zerio
bbf23491dc
Merge branch 'main' into main
2024-11-11 20:52:33 +01:00
Mustache Dom
304a6f42a0
Update player.lua
2024-11-07 20:47:22 -08:00
Mustache Dom
1ce5dd831b
Update player.lua
2024-11-07 20:22:12 -08:00
Mustache Dom
080556c425
checks to see if RemoveMoney has enough
...
removes exploit to allow bank to be -99999999999
2024-10-22 15:07:23 -07:00
Kakarot
c15169296c
Merge branch 'main' into main
2024-07-25 22:04:57 +02:00
Zerio
4344c3a592
Merge branch 'main' into fix-isboss-sync
2024-07-15 04:59:18 +02:00
Zerio
c4bbff6b56
Merge branch 'main' into main
2024-07-15 04:55:14 +02:00
Kasey FItton
78bcabcbfc
fix(server/events): fix the typo in the typo
...
kill me plz
2024-07-12 01:31:33 +01:00
Kasey FItton
7e580eef1d
fix(server/events): fix typo
2024-07-12 01:26:37 +01:00
Kasey FItton
e1aa208b61
fix(server/functions): return database details correctly
2024-07-12 01:06:48 +01:00
Kasey FItton
be3bbb8abf
fix(server/events): error handle MySQL.ready
2024-07-12 00:24:17 +01:00
Kasey FItton
e39fe89140
feat(server): SQL error handling
2024-07-11 18:53:27 +01:00
Zerio
5d2ee040b3
feat: add same validation for gangs as for job
2024-05-26 07:55:38 +02:00
Zerio
3d6760b402
fix: what should happen for non existant jobs?
2024-05-26 07:55:11 +02:00
Zerio
ffc67e0347
fix: validate job info upon player login
2024-05-26 00:21:29 +02:00
Zerio
9fbab7a4e6
fix: remove usable item after resource stop
2024-05-25 21:04:30 +00:00
Kakarot
d479831d0d
server functions
2024-05-23 02:39:29 -05:00