Xwad Posted February 14, 2018 Share Posted February 14, 2018 It's because of the onClientResourceStart event, but i dont know why its triggering it twice. Thanks function create() triggerServerEvent ( "create_s", resourceRoot) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), create) and the server function create_s() outputChatBox("lol") end addEvent("create_s", true) addEventHandler("create_s", resourceRoot, create_s) Link to comment
NeXuS™ Posted February 14, 2018 Share Posted February 14, 2018 onClientResourceStart is triggered at each client. So if you have 2 players online, it'll be triggered twice when started and will be triggered whenever someone joins. Link to comment
Xwad Posted February 14, 2018 Author Share Posted February 14, 2018 ahhhh okay , thanks a lot! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now