Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
rf(utils): exportHandler won't be used with require
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximus7474 committed Dec 27, 2024
1 parent baf4019 commit b18c54b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 3 additions & 5 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ author 'Maximus7474'
repository 'https://github.com/Maximus7474/lb-tablet-dispatch-converter'
version '0.0.0'

files {
'utils/*.lua'
}

client_scripts {
'client/*.lua',
'utils/*.lua'
}

server_scripts {
'server/*.lua'
'server/*.lua',
'utils/*.lua'
}

provide 'qtarget'
6 changes: 2 additions & 4 deletions utils/exportHandler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
Obtained from https://github.com/overextended/ox_target/blob/main/client/compat/qtarget.lua#L1C1-L5C4
]]

local function exportHandler(exportName, func)
function ExportHandler(exportName, func)
AddEventHandler(('__cfx_export_qtarget_%s'):format(exportName), function(setCB)
setCB(func)
end)
end

return exportHandler
end

0 comments on commit b18c54b

Please sign in to comment.