Skip to content

Commit

Permalink
create init.lua
Browse files Browse the repository at this point in the history
QB prep
checks if qb-core is started and sets Framework to 'qb' if true
  • Loading branch information
Agnarz committed Oct 7, 2023
1 parent e6a0a08 commit c1eefa6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ lua54 'yes'
game 'gta5'

name 'ag-admin'
version '0.4.93'
version '0.4.94'
description 'FiveM Admin Menu'
author 'Agnarz'
repository 'https://github.com/Agnarz/ag-admin'

shared_script '@ox_lib/init.lua'
shared_script 'init.lua'

client_scripts {
'client/freecam/utils.lua',
Expand Down
6 changes: 6 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Framework = nil

if GetResourceState('qb-core') == 'started' then
Framework = 'qb'
end

0 comments on commit c1eefa6

Please sign in to comment.