-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: ESX Implementation #92
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good to me, tho I think the frameworks file in the client side need a refactor but for now it's ok.
Just change my 2 comments and we can merge
client/Expressions.lua
Outdated
@@ -47,7 +47,10 @@ if Config.ExpressionsEnabled then | |||
|
|||
if Config.PersistentExpression then | |||
AddEventHandler('playerSpawned', LoadPersistentExpression) | |||
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', LoadPersistentExpression) | |||
RegisterNetEvent('esx:playerLoaded', LoadPersistentExpression) | |||
if Config.Framework == 'qb-core' then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those checks are not useful since we are currently registering those events listener, if the server is qb-core, then the esx event will simply never be triggered
client/Walk.lua
Outdated
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', handleWalkstyle) | ||
RegisterNetEvent('esx:playerLoaded', handleWalkstyle) | ||
|
||
if Config.Framework == 'qb-core' then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
Both should be reverted back now |
I have added esx (basically just converted the qbcore functions to esx)
I have tested this but i would double check just in case.