open.mp forum
How to create a SAMP client in node js? - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: General (https://forum.open.mp/forumdisplay.php?fid=19)
--- Forum: Tech (https://forum.open.mp/forumdisplay.php?fid=21)
--- Thread: How to create a SAMP client in node js? (/showthread.php?tid=1618)



How to create a SAMP client in node js? - goldprince - 2021-01-30

Hello, I want to know, Is there any library or way to create a SAMP (San Andreas Multi Player)?client in?node js, I am working in?node js and I want to create a SAMP client.

Thank You,


RE: How to create a SAMP client in node js? - kemper - 2021-01-30

You can try with this package.


RE: How to create a SAMP client in node js? - goldprince - 2021-02-01

(2021-01-30, 12:47 PM)kemper Wrote: You can try with this package.



Hello, Thank you for the package, I've tried it but I think I am doing something wrong, I can see "Connected" message on my console but?no incoming request on my server, If you have any?reference for this lib please share.



Thank You,


RE: How to create a SAMP client in node js? - iAmir - 2021-02-01

You have to make your own RakNet lib bindings for JS

because the one linked above is for latest RakNet and samp is using a very old version of it, v2.x

You have to find that, for example 2.5, and create a JS wrapper around it, then use that to connect to samp server, you can always check RakSAMP and see how the logic is done after creating that said wrapper


RE: How to create a SAMP client in node js? - goldprince - 2021-02-01

(2021-02-01, 06:11 AM)iAmir Wrote: You have to make your own RakNet lib bindings for JS

because the one linked above is for latest RakNet and samp is using a very old version of it, v2.x

You have to find that, for example 2.5, and create a JS wrapper around it, then use that to connect to samp server, you can always check RakSAMP and see how the logic is done after creating that said wrapper



Hi iAmir, Thank you for your response, The problem is, I am not familiar with JS bindings, nor CPP, This is why, I am here.



If you know any other way to archive this or you have a solution, Please share.



Thank You,