Commit Graph

399 Commits

Author SHA1 Message Date
mikigoalie
65813e75e6 feat(imports/table): add table.map (#35) 2025-08-12 16:42:57 +02:00
David Malchin
a9648fb45f fix(points): grid inconsistencies (#37) 2025-08-10 02:20:46 +02:00
Edward
ba790f9830 feat(imports/getClosestPlayer): Implement ignorePlayerId on the server (#11)
Co-authored-by: Edward <24864616+Edward-Bakker@users.noreply.github.com>
2025-05-07 20:40:33 +02:00
Sergio
f59beb2af6 feat(imports/marker): Added invert property (#4)
MarkerType alias was replaced for an enum.
The type property in MarkerProps class is now optional, MarkerType or an integer (UpsideDownCone if missing).
The properties inside color are now defined as integers.
Added invert property, documented by CFX as drawOnEnts.
Added marker_mt metatable that stores default properties and draw method.

Signed-off-by: Sergio <89666307+feelfreetofee@users.noreply.github.com>
2025-05-04 17:59:18 +02:00
Zoo
4491ad3599 fix(zones/shared): ensure safe removal of zones from entering and exiting lists (#1)
Co-authored-by: toshko <toshko0003@gmail.com>
2025-05-04 17:58:50 +02:00
ANTOND.
ff2f4c06f9 chore: update organization name 2025-05-02 15:44:52 +02:00
Linden
cc6aed591f chore: adjust links 2025-03-29 21:46:58 +11:00
Linden
fb2225e373 chore: add copyright notices to each file
Some people accidentally, mistakenly, and without any malicious intent forget to attribute code from this resource to its source. This change will hopefully assist people, so that they do not make that mistake again.
2025-03-18 18:46:09 +11:00
Linden
ff2e765b60 fix(points): store all points within range in nearbyZones
Previously this only stored points with the nearby
method.
2025-03-18 05:36:57 +11:00
Linden
8509867abd refactor(callback/client): require source in response handler 2025-03-18 02:39:41 +11:00
Aaron
f5396edc78 fix(zones): trigger onExit when teleporting away from zones (#732) 2025-03-16 14:35:30 +11:00
Linden
b20130c998 fix(zones): ensure nearbyZones always updates 2025-03-14 15:25:28 +11:00
Linden
28729d7403 fix(grid): only returned cached grid entries if filter matches
Look into optimisations in the future.
2025-03-14 11:19:15 +11:00
Linden
4d8af3c31e fix(zones): update zone distance when checking contains
todo: consume caffeine
2025-03-14 10:11:08 +11:00
Linden
ae02b74878 fix(zones): correct contains check 2025-03-14 10:02:37 +11:00
Linden
34fb03d783 fix(zones): don't trigger onEnter on grid change 2025-03-13 21:14:19 +11:00
Linden
4188bd2596 feat(zones): add getNearbyZones 2025-03-13 19:31:21 +11:00
Linden
0b9f6e0cce refactor(grid): use an array to store nearby entries 2025-03-13 19:28:57 +11:00
CENSOR37
4690564755 feat(print): add convar change listener (#728) 2025-03-13 18:17:36 +11:00
ANTOND.
2a8ce3f4b0 fix(zones): correct zone data types (#729) 2025-03-13 18:17:10 +11:00
Linden
39ec1d3df5 feat(points): utilise the grid system 2025-03-10 16:42:00 +11:00
Linden
5a18b7e2d5 fix(grid): clear cached entries on change 2025-03-10 16:28:23 +11:00
Linden
caa9ed1d97 fix(zones): filter grid entries for zones 2025-03-10 14:28:29 +11:00
Linden
29f207edf9 feat(grid): add filtering to getNearbyEntries 2025-03-10 14:28:06 +11:00
Linden
105a079c09 feat(zones): utilise the grid system
This probably works, even.
2025-03-10 12:30:00 +11:00
Linden
534b1ab435 feat(grid): add a grid system
Based on mkafrin's grid used by PolyZone's ComboZones.
2025-03-10 12:29:14 +11:00
Linden
9e7750b3ba refactor(zones): improve types 2025-03-10 12:02:45 +11:00
Linden
9135e65009 refactor(zones): move to shared module 2025-03-10 11:52:20 +11:00
Linden
c9b7c375ee refactor(array): add generic to class type 2025-03-10 11:51:48 +11:00
Stan
68210b2a59 fix(zones): Fix error that occurs when there are no duplicate z-coords (#723) 2025-03-10 11:28:05 +11:00
Dimmies
024b392fdd fix(client/zones): fix nil error when multiple zones are removes at once (#726)
Signed-off-by: Dimmies <dimmiestv@gmail.com>
2025-03-10 11:23:50 +11:00
Slyy
cf5423e42f feat(table): added table.shuffle (#718) 2025-03-07 15:16:42 +11:00
Dolu
f4f1596ff6 feat(relativeCoords): allow passing full rotation (#703) 2025-02-12 14:51:57 +11:00
Judd
a4978804a2 feat(cron): add maxDelay property to control task execution delay (#708) 2025-02-11 20:15:29 +11:00
Linden
cbca5b7951 fix(scaleform): missing types 2025-02-08 18:02:14 +11:00
Linden
aa2f761a34 fix(scaleform): invalid private property access
Adds an isDrawing and draw method to scaleforms.
So technically a feature I guess.
2025-02-08 13:14:51 +11:00
Linden
b726faea2d feat(callback): implement callback validation
Prevent callbacks from being overwritten by other resources.
Throw an immediate error if the callback does not exist.
2025-02-03 15:41:58 +11:00
Rafael
5c0239be06 feat(relativeCoords): add lib.getRelativeCoords function (#685) 2025-01-31 10:23:08 +11:00
Codexis
c1ccd767ff feat: scaleform class (#698) 2025-01-31 09:57:47 +11:00
Linden
189306d5aa fix(array): Array.from string delimiter 2025-01-29 08:02:06 +11:00
Linden
6a24f9b971 fix(array): format error message 2025-01-29 07:13:16 +11:00
hakanesnn
7076f19c9b fix(cron): matching weekdayMap with os.date (#700) 2025-01-29 07:00:20 +11:00
Linden
45b045a37e feat(array): additional methods 2025-01-29 06:54:06 +11:00
Linden
d0a0f34018 fix(timer): set initial value of triggerOnEnd to true 2025-01-28 06:47:48 +11:00
Linden
769fa35f38 fix(timer): redefine local function as method
The previous commit added a private property, but they
cannot be set outside of class methods. Added an error
when starting a running timer, too.
2025-01-26 05:20:23 +11:00
Linden
8af94a7194 feat(class): allow private to be redefined
Allows self.private to defined as a new table, allowing it to
remain empty without being removed after instantiation.

Resolves #696.
2025-01-26 04:05:29 +11:00
Linden
0192fd015b fix(array): indexOf return value 2025-01-21 11:33:15 +11:00
Linden
728d20c079 fix(timer): re-enable onEnd after stopping a timer
Resolves #667.
2025-01-20 02:24:00 +11:00
Linden
99fb752d30 fix(callback): support __call metatables as cb function
Resolves #668.
2025-01-20 02:10:09 +11:00
NotSomething0
ebddb35b00 fix(marker): logical error when setting faceCamera (#686)
Due to the way boolean values were being assigned, faceCamera would
always evaluate to true because of its default value. This change fixes
the logical error and ensures boolean properties are properly set.
2025-01-20 02:07:03 +11:00