Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliuswadskov/vrp-lib
vRP Library with callback included
https://github.com/juliuswadskov/vrp-lib
Last synced: about 1 month ago
JSON representation
vRP Library with callback included
- Host: GitHub
- URL: https://github.com/juliuswadskov/vrp-lib
- Owner: juliuswadskov
- License: mit
- Created: 2021-05-04T14:53:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-08T18:04:11.000Z (over 3 years ago)
- Last Synced: 2024-05-20T19:54:41.239Z (7 months ago)
- Language: Lua
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vrp-lib
vRP Library with callback included## Add this to your fxmanifest.lua
```lua
client_scripts {
"lib/Proxy.lua",
"lib/Tunnel.lua",
"lib/callback/client.lua"
}server_scripts {
"@vrp/lib/utils.lua",
"lib/callback/server.lua"
}
```## To use the callback
### Client
```lua
TriggerServerCallback('test', {'hey'}, function(bool)
if bool then
print('works')
end
end)
```### Server
```lua
RegisterServerCallback('test', function(source, cb, arg2)
print(arg2)
cb(true)
end)
```