Raised This Month: $12 Target: $400
 3% 

trigger Javascript function through SourceMod?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 07-17-2019 , 09:34   trigger Javascript function through SourceMod?
Reply With Quote #1

Hey, as the title say, is there a way to trigger a Javascript function ( example: myFunction(); ) through Sourcemod? i have a plugin.sp and index.js. i want to trigger a function in index.js

thanks.

Last edited by iskenderkebab33; 07-17-2019 at 09:36.
iskenderkebab33 is offline
CrazyHackGUT
AlliedModders Donor
Join Date: Feb 2016
Location: Izhevsk, Russia
Old 07-17-2019 , 09:56   Re: trigger Javascript function through SourceMod?
Reply With Quote #2

What you need? You have site with this script or just placed somewhere?
__________________
My english is very bad. I am live in Russia. Learning english language - very hard task for me...
CrazyHackGUT is offline
Send a message via ICQ to CrazyHackGUT Send a message via Skype™ to CrazyHackGUT
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 07-17-2019 , 10:53   Re: trigger Javascript function through SourceMod?
Reply With Quote #3

Quote:
Originally Posted by CrazyHackGUT View Post
What you need? You have site with this script or just placed somewhere?
yes a site, www.example.com/blabla/index.js

and for example the sourcemod plugin should run the function myFunction() in index.js, or just the index.js

Last edited by iskenderkebab33; 07-17-2019 at 10:54.
iskenderkebab33 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-18-2019 , 04:02   Re: trigger Javascript function through SourceMod?
Reply With Quote #4

Use the Steamworks or Sockets extension to call your web scripts.
__________________
Neuro Toxin is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 07-18-2019 , 07:29   Re: trigger Javascript function through SourceMod?
Reply With Quote #5

Quote:
Originally Posted by Neuro Toxin View Post
Use the Steamworks or Sockets extension to call your web scripts.
thanks, i try it
iskenderkebab33 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode