Forum > Coding >

How would I prevent a remote event fro firing with specific arguments?

trollhackerdude

LUA and C# programmer

Posts: 118

Threads: 33

Joined: Jun, 2018

Reputation: 1

Posted

for example

 

if RemoteEvent:FireServer(1, 26) -- 1, 26 are the arguments

 

  • 0

I know LUA and some C#

 

and i own synapse x noob

WRD

Owner

admin

Posts: 990

Threads: 33

Joined: Dec, 2016

Reputation: 106

Replied

I don't think you can prevent it from firing, but you should be able to exit the function simply by using return if it matches a check

 

For example, in the remote's fire event callback, add

 

if ((param1 == 1) and (param2 == 26)) then

return

end

  • 0

I'm just a chill guy fr 🤙

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )