Commit Graph

431 Commits

Author SHA1 Message Date
Joel 3c9ce7cc4c fix: append source id when registering client callback in table to prevent collisions 2025-10-06 13:41:12 -04:00
Joel aaa681fdd4 fix: append source id to prevent client callback collisions 2025-10-06 13:39:11 -04:00
MrNewb d19f34ba09 update 2025-06-22 15:45:03 -04:00
Kakarot 2827a6350b Merge branch 'main' into main 2025-06-22 14:38:43 -05:00
MrNewb 7a0567efac feat(core): add functions to retrieve online players by job name or type with optional on-duty check
Adds two utility functions to retrieve online players by either job name or job type, with optional filtering for on-duty status. While the logic is a bit nested, this approach avoids unnecessary function splitting and keeps related behavior in a single place. Although I'm not entirely satisfied with the nesting, this structure felt like a reasonable trade-off between readability and reusability.

This method could also serve as a foundation for deprecating older job-check functions, should the maintainer choose to consolidate similar logic in the future.
2025-05-23 04:13:17 -04:00
Stevie 76dcd087df Update functions.lua 2025-04-11 04:26:31 +01:00
Stevie eabfb14086 Update functions.lua 2025-04-11 04:24:56 +01:00
Stevie d293239c71 Update functions.lua 2025-04-11 04:23:35 +01:00
Stevie 85bc71416a Update functions.lua 2025-04-11 03:44:55 +01: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
Kakarot 8ed71e03b9 Merge branch 'main' into main 2024-05-20 20:43:56 -04:00
Toretto 8a9849b803 Merge branch 'main' into main 2024-05-21 00:16:35 +01:00
Kakarot 435c5335a3 Inventory Update 2024-05-20 05:28:38 -05:00
t0retto 07099e64a5 fix: annoying typo 2024-05-18 22:29:51 +01:00
TehSteel 5936be434a Update events.lua 2024-05-16 23:43:53 +03:00
TehSteel 4dbe320962 Update events.lua 2024-05-16 23:35:25 +03:00
Kakarot 7a0d4830cc Merge branch 'main' into optimizations 2024-05-11 19:12:32 -04:00
Kakarot 1ac602bbcc Merge branch 'main' into patch-1 2024-05-11 18:58:10 -04:00
Kakarot c068817f17 Merge branch 'main' into optimizations 2024-05-11 18:57:53 -04:00
Joel 20fe7e471c Fix: Set job boss value to grade value
Updates the job table's `isboss` value based on the grade
2024-05-05 09:25:03 +01:00
Kakarot 06f92b657c Update player data format & queries 2024-05-01 02:25:54 -05:00
EinS4ckZwiebeln 868600197d Optimizations 2024-03-28 12:56:32 +01:00