vRP-framework / vRP

FiveM (http://fivem.net) RP addon/framework
https://vrp-framework.github.io/vRP
MIT License
294 stars 191 forks source link

vRP connection with js script #650

Open beoipisilon opened 3 years ago

beoipisilon commented 3 years ago

How can I make a script in js pull vrp functions? like the .lua

local Tunnel = module("vrp", "lib/Tunnel") local Proxy = module("vrp", "lib/Proxy")

vRP = Proxy.getInterface("vRP") vRPclient = Tunnel.getInterface("vRP")

this in js

beoipisilon commented 3 years ago

I did a workaround, and got this result.

image image