Commit Graph
138 Commits
Author SHA1 Message Date
Mr.Crowley b06d2fb49e Discarded entityactions and updated target
Discarded entityactions: was not used and bloat. Need a new system that handled networked entities static vs dynamic (non-moving non networked vs moving networked)

updated target to improve performance on canInteract. It seems that the target systems spam this function. Using a state and checking every second instead of allowing spamming

Added ClientEntity.ChangeModel
2025-08-20 22:23:07 -05:00
MrNewb 718214d135 This is busted, should be removed.
Should be removed as not working for external resources.
It will work in the bridge itself but could lead to bloat/misuse and we shouldn't be responsible.
2025-08-20 16:59:04 -04:00
Mr.Crowley cdeba0652d Community Feedback on cache
serverid in cache is pointless and will never change

unit tests are not actually unit tests so i renamed to examples.
2025-08-18 18:32:38 -05:00
Mr.Crowley c34b1cce27 Merge branch 'dev' of https://github.com/The-Order-Of-The-Sacred-Framework/community_bridge into dev 2025-08-16 19:28:09 -05:00
Mr.Crowley 6106f76b2d small mistake
got rid of cellkey as it was clamped to a 10 meter radius, replaced with id
2025-08-16 19:27:06 -05:00
MrNewb 58242b4213 possible fix
Before only one point could exist per cell.
This corrects that but im unsure on the impact to performance or grids
2025-08-16 07:04:00 -04:00
MrNewb 0fc872a102 patch for vector4 2025-08-16 05:56:25 -04:00
MrNewb defc7c0e8b blip tweak 2025-08-16 01:03:45 -04:00
Mr.Crowley 972399ebf6 forogt a print 2025-08-15 23:58:29 -05:00
Mr.Crowley 255462493f cache error fix 2025-08-15 23:57:31 -05:00
Mr.Crowley bdde5124ff Simplified Points
Reduced code and calculations should hopefully be more performant
2025-08-15 23:54:55 -05:00
Mr.Crowley 7a598dd8d8 update for fivem appearance
should be working for esx now
2025-08-15 13:28:13 -05:00
Mr.Crowley e11ef1242d tweaks 2025-08-12 19:23:15 -05:00
MrNewb 29c19f3cb4 Update client_entity.lua 2025-08-12 20:20:49 -04:00
MrNewb 35d18972e6 Update points.lua 2025-08-09 23:40:27 -04:00
MrNewb 249f1c4032 Update server_entity.lua 2025-08-07 02:19:20 -04:00
MrNewb a63837bd1f Refactored model/anim checks, utility functions, and text rendering
Modified EnsureModelLoaded to skip validation and request loops if the model is already loaded

Condensed SafeAddBlip, SafeRemoveBlip, etc. into dedicated utility functions

Removed AddTextEntryOnce and SafeAddTextEntry — native existence checks were redundant

Replaced repetitive table inserts with keyed tables using tostring(number) to avoid unnecessary loops

Added HasAnimDictLoaded check to RequestAnimDict to prevent redundant request loops

Introduced FloatingHelpText in utilities (aesthetic improvement)

Updated DrawText: replaced outdated logic, switched 1 to true for clarity/preference
2025-08-07 01:50:50 -04:00
Mr.Crowley 140bad5b34 made woopsie to entities 2025-08-05 20:57:26 -05:00
MrNewb d8f1599052 Update points.lua 2025-08-05 00:01:32 -04:00
Mr.Crowley 2fd5c7c08f Update client_entity.lua
Added skip to remove so we dont call external on remove.
2025-07-28 00:58:02 -05:00
MrNewb 88b4daa2e8 migrate cache.ped to PlayerPedId() 2025-07-28 01:37:52 -04:00
Mr.Crowley 0970bdd604 migrated management to banking
also fixed loadmodel typo
2025-07-25 02:51:14 -05:00
Mr.Crowley 2ad1f4669c small update
target got a print if onSelect or action are nil

also added groups in fixoptions for sleepless

client entities using return for loadmodel
2025-07-24 05:03:07 -05:00
MrNewb 9c98bd00f3 Update callbacks.lua 2025-07-20 00:38:35 -04:00
gononono64 b4679f1866 fixed old placer locale issue 2025-07-09 08:10:01 -05:00
gononono64 003153be63 entity adjustments
depricating register / unregister and replacing with Create/Destroy to follow convention
math.Inbounds checks a list of points (table.points = vector3[] minZ = int || -math.huge, maxZ = int || math.huge)
2025-06-30 15:18:01 -05:00
gononono64 725a86ed8d placeable objects + small tweaks
skills booboo. This should do it (working properly now)
utility shortnames used for command buttons getter
en.json added placeable tags (was missing 1) NEEDS OTHER CONVERSIONS

Placer: Lots of stuff. Pass model and settings. Refer to .lua for setting params
2025-06-30 02:07:20 -05:00
gononono64 9b44fcbc16 small tweaks
entities now has register bulk
added docs to a function for sql module
added table.count
2025-06-22 17:40:41 -05:00
MrNewb 3f7e87b710 oops 2025-06-21 09:12:24 -04:00
MrNewb 854482094a small tweaks 2025-06-21 07:53:49 -04:00
MrNewb 9edcb229f3 patch 2025-06-10 06:13:19 -04:00
MrNewb 854ca2bd61 This is a holy grail of a find.
This will pull the currently bound key as a string from a command.
Use case - allow users to rebind keys for a command, this can then pull what they have bound as a string. Very useful for ui/helptext/notifications to display the correct key in use.

The codes messey but its because the special chars and is needed. We need this though sooooo yea.
2025-06-10 01:33:25 -04:00
MrNewb cf73514848 locale cleanup + additional languages 2025-06-09 00:15:27 -04:00
MrNewb a32b138ad4 temp disable notify 2025-06-08 23:36:06 -04:00
gononono64 8ddddf5329 shells
keep in mind target is now requirable using the init file in its default folder
2025-06-06 20:39:55 -05:00
MrNewb 01217efc5b Update utility.lua 2025-06-05 00:46:06 -04:00
gononono64 3fa933fab1 Cleanup and placeable_object replacement
Added cleaned up and improved functionality for placeable object.
Example is in unit tests.

Cleanup whitespace and removed accessibility as not used/not documented and doesnt appear to be useful with our current work flow
2025-06-04 15:29:21 -05:00
gononono64 34d24cb6a9 Targets, entities and events, oh my!
Targets updated to have boxzone
Entities dont require a model and are effectively points with on spawn on despawn
onplayerloaded and onplayeriunloaded now pass source
2025-06-02 22:19:42 -05:00
MrNewb 38ce2e8f1e feat(GetClosestVehicle) -- Now ready 2025-05-29 11:00:24 -04:00
MrNewb 14ea4c6a31 Revert "feat(GetClosestVehicle)"
This reverts commit 59d22e9fa7.
2025-05-29 10:26:40 -04:00
MrNewb 59d22e9fa7 feat(GetClosestVehicle)
---Get the closest vehicle to given coordinates
---@param coords vector3|nil
---@param distanceScope number|nil
---@param includePlayerVeh boolean|nil
---@return number|nil, vector3|nil, number|nil
2025-05-28 09:37:29 -04:00
gononono64 ba111f1b52 Changed createshop to registershop
dont forget to update

usibg cache system for clothing
2025-05-24 22:10:39 -05:00
MrNewb 54437d9639 feat:Entity blips 2025-05-24 21:39:37 -04:00
gononono64 d4908042be Clothing and clipboard update
QBClothing and ESKSkin working. Need others (WIP)

Copy to clipboard now a utility function. Will json encode if ~= string
2025-05-24 18:03:31 -05:00
gononono64 b9f5a3ed64 Small fix for client entities and qb stashes and shops
Shops: aligned format with others and removed the instant open (on create)

Stashes: Updated for new version of qb (exports)

Entities: returning point object
2025-05-24 15:36:05 -05:00
gononono64 0d606bc859 Entity fix and stash update
Slimed OpenStash down to just an src and id instead of needing duplicate data.

Was not sure if this affects newb so im throwing it in a pr.
2025-05-19 07:20:23 -05:00
gononono64 90fac2fc95 fix for require used outside of bridge
Previously unable to require anywhere outside of the bridge. Can now call require outside of bridge as intended
2025-05-16 21:54:33 -05:00
Johann Kraus 38d7924982 update cache with invoking resources 2025-05-16 10:48:33 -03:00
MrNewb 7089331759 Merge pull request #97 from JericoFX/patch-2-cache
Cache Refractor
2025-05-16 04:46:21 -04:00
Johann Kraus 1c19fffb31 Clean DUI until i found a better way to do it 2025-05-16 01:45:50 -03:00