Kewun Posted September 6, 2016 Share Posted September 6, 2016 function MessagePlayer(text) outputChatBox(text,source) end function onGraczJoin() MessagePlayer("Welcome to the kewun's beta test server") spawnPlayer(source, 0,0,5,0,0,0) setCameraTarget(source, source) setCameraInterior(source, getElementInterior(source)) end addEventHandler("onPlayerJoin", getRootElement(), onGraczJoin) then after i join server, i get black screen, how to fix this? Link to comment
1LoL1 Posted September 6, 2016 Share Posted September 6, 2016 (edited) fadeCamera() Edited September 6, 2016 by 1LoL1 1 Link to comment
1B0Y Posted September 6, 2016 Share Posted September 6, 2016 You need a player parameter on the MessagePlayer function. Source will be nil. Fix below. function MessagePlayer(player,text) outputChatBox(text,player) end function onGraczJoin() MessagePlayer(source,"Welcome to the kewun's beta test server") spawnPlayer(source, 0,0,5,0,0,0) -- Insert rest of code here end addEventHandler("onPlayerJoin", getRootElement(), onGraczJoin) Link to comment
Walid Posted September 6, 2016 Share Posted September 6, 2016 Waste of time simply replace MessagePlayer with outputChatBox() outputChatBox("Welcome to the kewun's beta test server",source) You don't need to use this function. function MessagePlayer(player,text) outputChatBox(text,player) end Link to comment
Kewun Posted September 10, 2016 Author Share Posted September 10, 2016 i use MessagePlayer, because i want functions from LU gta 3 mp 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