Conversation
no sense in having
```
data[#data = 1] = {
data.params.event[?]
}
```
if you are just utilizing a function with this PR you can do
```
exports['qb-menu']:OpenMenu({
{
header = 'hello',
isAction = function()
print('hello world')
end
}
})
```
Keeps consistent with qb-target
client/main.lua
Outdated
| if sendData then | ||
| local data = sendData[tonumber(option)] | ||
| sendData = nil | ||
| if data.action ~= nil then |
There was a problem hiding this comment.
There is a whitespace after the then, just for the linting report to pass
|
The rest of the PR looks great to me, only that yo should edit the PR comment to point out that is not |
|
good looking out @Cocodrulo this is why i dont push edits in bed way past my bedtime |
keeps more in line with qb-target also removed blank space
|
#update no sense in having
|
no sense in having
if you are just utilizing a function with this PR you can do
Describe Pull request
ideally this will make things easier on devs since it will greatly reduce the tables needed to make a menu **if they are using an isAction = function() **
instead of doing
They can now do
While still maintaing the older method with a bunch of tables so it will be backwards compatible for other scripts
Questions (please complete the following information):