#Execute code at same time client and server side
9 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
keep in mind that
client loads startup and client scripts
server loads startup and server scripts
I use the global on startup (with high priority) and reference that on server/client
for example a script named
global_constants.js
// priority 100
global.hideItems = [
"minecraft:stone",
"minecraft:oak_log"
]
now you can loop
global.hideItems.forEach(id => {
// use id for something
}
use them on server or client side without any problem. just make sure it is lower priority than where you populated the variable
also keep in mind that client will load before server 
same with startup, server always loads last
that is not an issue
ofc it's not, I'm just pointing that out
that work , thanks
[i have intended that was a issue on my code]