Firespider Posted July 20, 2022 Share Posted July 20, 2022 When a player comes to my server and the picture is black, he can't see anything. I can only solve it by starting Freeroam, is there another way? So they see things automatically? Link to comment
roaddog Posted July 21, 2022 Share Posted July 21, 2022 because there is no handler in Freeroam, start play resource Link to comment
Tekken Posted July 21, 2022 Share Posted July 21, 2022 Hello, "onPlayerJoin" > fadeCamera(player, true) also spawn the player and setCameraTarget(player) Link to comment
Firespider Posted July 21, 2022 Author Share Posted July 21, 2022 Finally someone who doesn't recommend the Spawn script because it doesn't work for me. Thanks, I'll see how it works Does not work Link to comment
Tekken Posted July 21, 2022 Share Posted July 21, 2022 May I see how you implement it? Link to comment
Firespider Posted July 22, 2022 Author Share Posted July 22, 2022 How do you accomplish what? This is a code Link to comment
#\_oskar_/# Posted July 22, 2022 Share Posted July 22, 2022 local function spawnplayer(plr,...) spawnPlayer(plr,...) fadeCamera(plr,true) setCameraTarget(plr,nil) end Event onPlayerJoin ex addEventHandler("onPlayerJoin",root,function () spawnplayer(source,0,0,4) end) Link to comment
#\_oskar_/# Posted July 22, 2022 Share Posted July 22, 2022 38 minutes ago, Firespider said: Dont't woking. What is the error you are getting because I am sure everything is working correctly Link to comment
Firespider Posted July 22, 2022 Author Share Posted July 22, 2022 No error, just a black image From such a basis Link to comment
#\_oskar_/# Posted July 22, 2022 Share Posted July 22, 2022 Just now, Firespider said: No error, just a black image You can exit of the server and join again or try function spawnplayer(plr,...) spawnPlayer(plr,...) fadeCamera(plr,true) setCameraTarget(plr,nil) end addEventHandler("onPlayerJoin",root,function () spawnplayer(source,0,0,4) end) addEventHandler("onResourceStart",resourceRoot, function () for k,p in ipairs(getElementsByType("player")) do spawnplayer(p,0,0,4) end end) Link to comment
Firespider Posted July 22, 2022 Author Share Posted July 22, 2022 Do we write the coordinates of where to spawn in place of the numbers? It interferes with the account system, don't spawn the player where she exits I already solved it Why don't you bring up the panel? Bad picture This is a picture Link to comment
Tekken Posted July 22, 2022 Share Posted July 22, 2022 4 hours ago, Firespider said: How do you accomplish what? This is a code Just change player and thePlayer with source restart and reconnect it should work Link to comment
Firespider Posted July 22, 2022 Author Share Posted July 22, 2022 Tekken, can you help me with why the menu does not appear when I press F5. Is the problem with the BindKey? (The previous case has already been resolved) Link to comment
Tekken Posted July 22, 2022 Share Posted July 22, 2022 Replace if isCardShop(true) then with if isCardShop == true then Also to set it true or false do isCardOpen = true or isCardOpen = false Link to comment
Firespider Posted July 22, 2022 Author Share Posted July 22, 2022 Did I miss something? Bad picture Now I wrote that it doesn't write an Error code, but it doesn't work Link to comment
Firespider Posted July 23, 2022 Author Share Posted July 23, 2022 And is it possible that only one team can open that menu? (PL with GetPlayerTeam?) 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