184 Commits
Author SHA1 Message Date
Mustachedom 3947eb6cd5 - gutted utilities to only have a couple useful functions
- `removed` second object spawner
- `edit` more lib conversions
2026-08-18 01:23:06 -07:00
Mustachedom d85a1300d5 - remove callback calls 2026-08-18 00:13:37 -07:00
Mustachedom 07530a8662 - remove locales module 2026-08-18 00:02:04 -07:00
Mustachedom d6cffd01bc - init changes 2026-08-17 03:49:37 -07:00
MrNewb 60df8b8d6c Update utility.lua 2026-08-14 19:10:26 -04:00
Mr.Crowley ad8788bbfd Invoking can return nil
Added fallback for current resource, future proofing against require and fixing entities target property
2026-08-14 17:38:09 -05:00
MrNewbandClaude Fable 5 cd7fa10f54 fix(sql): parameterize SQL helpers and deprecate the module
All values now bind through ? placeholders instead of string
concatenation, Get/Delete take { column = value } filter tables
(raw WHERE strings error loudly), and table/column identifiers are
validated and backtick-quoted. The whole module is deprecated with a
once-per-resource console warning and will be removed on 2026-08-22 —
migrate to oxmysql directly (MySQL.query.await with ? placeholders).

Closes #198

Reported-by: Pajt9whauht283as <https://github.com/Pajt9whauht283as>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-01 01:09:39 -04:00
Sinaps Dev bd531c8464 decreased marker thread interaval 2ms to remove flickering 2026-01-31 19:18:58 +01:00
Mr.Crowley 1f2519af5b took pr suggestions
removed print and added missed documentation
also missed passing id for anim, id is based off entitydata id
2026-01-12 16:42:44 -06:00
Mr.Crowley 4bc1925f4d Add UpdateRotation method to ClientEntity
Introduces ClientEntity.UpdateRotation to update entity rotation and apply it to the spawned entity if it exists. Also fixes SetKey to update the key before calling the handler.
2026-01-11 20:37:42 -06:00
Mr.Crowley 68ca928033 Stipped away inefficient behavior system
Refactored the entity system to be **property-driven** with automatic `On<Property>` change handlers.

Added improved `Bridge.Entity.SetOnCreate` support so clients can identify and attach logic to **server-created entities** based on properties.

Introduced standardized default properties on `Bridge.Entity.Create`, including:

* `freeze` (defaults to frozen)
* `invincible`
* `targets`
* `attach`
* `anim`

Added exported helper functions for all of the above to allow runtime updates after creation.
2026-01-11 18:36:07 -06:00
MrNewb 48f8122197 Remove cache and batch event libraries, update locales
Deleted the cache and batch event libraries from the codebase, including all related client, server, and shared files. Removed server-side particle library and associated client event handlers. Updated utility and clothing modules to remove cache dependencies. Improved utility logging and deprecated point functions with notices. Updated all locales to use a consistent 'PurchasedItem' message format and added Bulgarian (bg) translation. Bumped version to 0.13.1 in fxmanifest.
2025-12-23 19:27:27 -05:00
MrNewb 343af95794 Remove example scripts and update core logic
Deleted all files in the examples directory to clean up unused or test scripts. Updated fxmanifest.lua to enable ox_lib initialization. Improved error handling and entity tracking in utility functions, added prop removal, and made minor localization and code style adjustments throughout the codebase. Significant reword of inventory module, notification module, and framework module. Added support for wasabi_uikit, added support for keep-progressbars,
2025-12-14 16:22:35 -05:00
Mr.Crowley a1901fc400 Bux fixes and cleanup
placeable_objects cleaned up white space and removed commented out code

points: issue with teleporting outside of a cell. Does not fire onremove event functions. Fixed

utility: Implemented fix for special characters for blips.

dialogue: upped wait time on close. This allows use to reopen the menu right away without firing the animation to close
2025-11-14 18:36:35 -06:00
MrNewb 444040dd39 This was crowleys commit and work - Refactor entity behaviors and improve particle handling
Refactored entity behavior triggers to simplify argument passing and added OnSet handler for particle behaviors. Improved particle effect management and event handling, updated locale and lib initialization in several modules, and fixed skill metadata access. Also streamlined point zone logic and menu/zone system initialization for better reliability.
2025-10-26 16:20:27 -04:00
MrNewb 7b18956cbf Fix number generation in CreateUniqueId function
Replaces direct number insertion with string formatting to ensure numbers are appended as strings when generating unique IDs.
2025-10-19 22:43:55 -04:00
Mr.Crowley 05bee5e743 Hotfix
doubled grid size to accomidate cayo and hopefully ny
2025-10-14 00:26:48 -05:00
MrNewb 15e5249927 Add fivemanage log system support
Introduces a new 'fivemanage' log system option in serverConfig and implements its handler in logs.lua. Also refactors log handler functions for consistency and updates the default LogSystem to 'none'.
2025-10-12 22:13:33 -04:00
Mustache Dom b96a64f371 feature Prints now auto formats json to go downwards in prints so its easier to read
`useCase`


```lua
Prints.Debug('GTA', 5, {is = true, cool = true})
```
2025-09-29 01:31:46 -07:00
Mr.Crowley c985261cf3 Fix SetEntityCoords last arg to false in UpdateEntity
Changed the last argument of SetEntityCoords from true to false in the UpdateEntity function to adjust entity movement behavior.
2025-09-18 23:47:03 -05:00
Mr.Crowley 8215a16c27 Add deprecated args field to Point.Register
Introduces a self.args field to the Point.Register function, marked as deprecated for future removal 2025-09-10. This change preserves compatibility for code relying on the args property.
2025-09-10 17:43:18 -05:00
MrNewb d669f7ba16 Remove debug print from UpdateEntity event
Eliminated unnecessary json-encoded print statement from the UpdateEntity event handler to clean up console output.
2025-09-10 12:42:19 -04:00
Mr.Crowley e7de2972fd Add client/server entity examples and improve 3D help text
Added new example scripts for client and server entity creation, demonstrating features like clothing, particles, scenarios, and targets. Enhanced Utility.Draw3DHelpText to support multi-line text and improved background rendering for better readability.
2025-09-10 10:45:10 -05:00
MrNewb f472232273 Add vehicle properties system and update attributions
Introduces a comprehensive vehicle properties handler in lib/vehicles/client.lua, inspired by ESX, QB-Core, and ox_lib frameworks. Updates Attributions.md to document the new vehicle system, clarify licensing, and improve formatting. Registers Vehicles in lib/init.lua for client use.
2025-09-10 11:07:58 -04:00
Mr.Crowley 18748bd775 Refactor entity movement and add Math.Nearest function
Simplifies entity movement logic in client_entity.lua by improving coordinate comparison and updating behavior triggers. Adds a new Math.Nearest function in math.lua to round values to the nearest whole number.
2025-09-04 11:42:59 -05:00
Mr.Crowley debfb06231 Refactor stash and targets behavior logic
Simplifies stash target assignment by returning early when registering a stash, ensuring consistent target setup. Enhances target update logic to check for removed targets and removes debug print statement.
2025-09-04 08:21:48 -05:00
Mr.Crowley 7443695254 Improve entity spawning and target behaviors
Refactored client entity spawning to handle missing models and improved coordinate update sensitivity. Removed model assertion from server entity creation. Enhanced resource start event handling for both server and client. Updated stash and target behaviors to support additional properties and better zone handling for entities without spawned objects.
2025-09-03 08:57:39 -05:00
Mr.Crowley dff4622a94 Refactor entity behavior to use Bridge.Entity
Replaces all usage of Bridge.ClientEntity and Bridge.ServerEntity with Bridge.Entity across shared behavior modules. Updates initialization in lib/init.lua to use cLib.Entity and marks cLib.ClientEntity and cLib.ServerEntity as deprecated for consistency and future maintainability.
2025-09-03 04:06:31 -05:00
Mr.Crowley cb9dbdf610 Adjust entity movement threshold and follow behavior
Increased the movement threshold for entity updates from 0.05 to 1.0 to reduce unnecessary position updates. Modified follow behavior to offset the entity's coordinates by -1 on the Z axis when updating, possibly to account for ground level or animation adjustments.
2025-09-03 01:23:01 -05:00
Mr.Crowley dd08f058c3 Refactor client entity management functions
Added freeze position handling in UpdateEntity and ensured OnDestroy behavior is triggered on entity destruction. Removed unused and commented-out Update function, and improved code clarity in Set and Destroy methods.
2025-09-03 01:04:04 -05:00
Mr.Crowley 8346130b00 Add modular entity behaviors and update entity logic
Introduces modular behaviors for entities, including anim, attach, clothing, follow, particles, scenarios, shop, stash, targets, and weapon, each in their own files. Updates client_entity.lua and behaviors.lua to support dynamic behavior registration, initialization, and triggering. Refactors entity update logic to improve movement handling and behavior invocation.
2025-09-03 00:28:17 -05:00
MrNewb 63d2f675f6 Buffer and batch Discord log messages
Introduces a queue and timer to batch log messages before sending them to Discord, reducing the number of HTTP requests. Refactors the built-in log handler to use the new queuing system and improves code consistency. Looks gross but works.
2025-09-01 03:33:29 -04:00
MrNewb 7f14eef82b Refactor logging system and centralize config
Reworked the logging system to use a unified handler approach supporting built-in, qb, ox_lib, and Fivemerr log systems. Deprecated Logs.Send and Logs.Notify in favor of Logs.CreateLog. Centralized all logging configuration options in serverConfig.lua for easier management and extensibility.
2025-09-01 02:29:15 -04:00
Mr.Crowley c399fbaca4 Refactor behavior and entity invocation handling
Standardizes the use of the 'invoked' property for entities and behaviors, ensuring behaviors are scoped per invoking resource. Updates behavior registration, retrieval, removal, and cleanup logic to support resource-specific behavior tables, improving modularity and preventing cross-resource conflicts.
2025-08-31 20:50:46 -05:00
Mr.Crowley f2ff03734e prep for behaviors
readded behaviors
2025-08-30 19:12:56 -05:00
MrNewb 26bd9e1cad Update server_entity.lua 2025-08-30 03:43:01 -04:00
Mr.Crowley 495b24e53f fixed last mess 2025-08-27 06:13:02 -05:00
Mr.Crowley e06e04a2c6 hope this works 2025-08-27 05:47:44 -05:00
Mr.Crowley 5b6641fc60 silly me
woopsies
2025-08-24 20:02:47 -05:00
Mr.Crowley 8c309e248e Added behaviors and documentation to oxlibs zones
Will provide file in example when more features are implimented
2025-08-23 22:53:49 -05:00
Mr.Crowley 2da3fed196 following convention for blips
switched to follow naming convention for others
2025-08-22 03:33:42 -05:00
Mr.Crowley 4e313c40cb Update to utility for blip
added .CreateBlipRadius which makes a circular blip with some radius in meters
2025-08-22 03:27:03 -05:00
Mr.Crowley d0d72bdba5 here we go again 2025-08-21 00:09:54 -05:00
Mr.Crowley cba3ba1d98 forgot to save init file 2025-08-20 23:51:03 -05:00
Mr.Crowley f900bc5ce1 Clean up 2025-08-20 23:49:22 -05:00
MrNewb b896b94001 sync 2025-08-20 23:38:22 -04:00
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