The Framework Bridge abstracts framework-specific logic into a common, easy-to-use API, allowing seamless interaction with multiple frameworks such as boii_core, qb-core, es_extended, and ox_core.
By consolidating functionality into a single bridge, developers can write framework-independent code, improving maintainability and scalability.
Addtional default support will be added for other frameworks as time progresses. If your framework is not currently covered and you would like it to be, reach out through discord.
Client Functions
get_data
Use the following function to retrieve the players client side across any covered framework.
Use the following function to check if a player has a specific job with an optional on duty check.
--- Specify job/slocal jobs = { 'police', 'fib' }--- If true player must be on duty to pass job checklocal require_on_duty =true--- Utils objectutils.fw.player_has_job(jobs, require_on_duty, function(has_job)if has_job thenprint('Player has job.')elseprint('Player does not have job.')endend)--- Direct exportexports.boii_utils:player_has_job(jobs, require_on_duty, function(has_job)if has_job thenprint('Player has job.')elseprint('Player does not have job.')endend)
get_player_job_grade
Use the following function to return the players grade for a specific job.
Use the following function to check if a player has a specified item and quantity.
--- Specify itemlocal item ='lockpick'--- Specify quantitylocal quantity =1--- Utils exportutils.fw.has_item(item, quantity, function(has_item)if has_item thenprint('Player has item.')elseprint('Player does not have item.')endend)--- Direct exportexports.boii_utils:has_item(item, quantity, function(has_item)if has_item thenprint('Player has item.')elseprint('Player does not have item.')endend)