mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
use same params and types format for all of lib
This commit is contained in:
1 parent
e3293c2109
commit
6c2ab8f8ec
14 files changed
+114
-67
No files matched your search
@@ -1,9 +1,11 @@
|
||||
### lib.callback.register
|
||||
```lua
|
||||
-- name: string
|
||||
-- cb: function
|
||||
lib.callback.register(name, cb)
|
||||
```
|
||||
* name: `string`
|
||||
* cb: `function`
|
||||
|
||||
```lua
|
||||
lib.callback.register('ox_inventory:getItemCount', function(source, item, metadata, target)
|
||||
local inventory = target and Inventory(target) or Inventory(source)
|
||||
return (inventory and Inventory.GetItem(inventory, item, metadata, true)) or 0
|
||||
|
||||
Reference in new issue
Block a user