Jump to content

[HELP]How do i execute script in chatbox?


NotAvailable

Recommended Posts

Posted

what are you trying to do exactly?

givePlayerMoney(getRootElement(), 1000) wont work either way, because getRootElement() is not a player element.

  • Discord Moderators
Posted
givePlayerMoney(getRootElement(), 1000) wont work either way, because getRootElement() is not a player element.

player functions gets player elements when you parse getRootElement(), it does work

You need to do that functionality yourself, runcode runs a function from a string for you, using command /run (serverside) and /crun (clientside)

Posted
givePlayerMoney(getRootElement(), 1000) wont work either way, because getRootElement() is not a player element.

player functions gets player elements when you parse getRootElement(), it does work

never thought of/tried that. my bad then :D

Posted
givePlayerMoney(getRootElement(), 1000) wont work either way, because getRootElement() is not a player element.

player functions gets player elements when you parse getRootElement(), it does work

You need to do that functionality yourself, runcode runs a function from a string for you, using command /run (serverside) and /crun (clientside)

i tried: /crun givePlayerMoney(getRootElement(), math.random(1,1000))

But nothing happend.

  • Discord Moderators
Posted

How do you execute givePlayerMoney clientside effective on all players?

start resource runcode

type: /run givePlayerMoney (root, math.random (1, 1000))

Posted

everything i wanted to post was already posted while i was typing. :D

PS: and dont forget to login as admin.

  • Discord Moderators
Posted
when i type it i dont get cash,
PS: and dont forget to login as admin.
  • Discord Moderators
Posted

When I do it:

Zango executed command: givePlayerMoney(root, 1000) 
Command results: true [boolean] 

and $1000 flows into my moneymeter

make sure you're using run and not crun

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...