Thanks to visit codestin.com
Credit goes to github.com

Skip to content

oskarraagart/vrp-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

vrp-lib

vRP Library with callback included

Add this to your fxmanifest.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

TriggerServerCallback('test', {'hey'}, function(bool)
    if bool then
        print('works')
    end
end)

Server

RegisterServerCallback('test', function(source, cb, arg2)
    print(arg2)
    cb(true)
end)

About

vRP Library with callback included

Resources

License

Stars

Watchers

Forks

Languages