Luan Matheus Posted May 28, 2020 Share Posted May 28, 2020 (edited) Eu queria uma ajuda, estou tentando arrumá-la, mas não estou conseguindo. Roteiro function teste () guarda1 = exports ["slothBot"]:spawnBot (-2427.99, -601.721, 132.563, 60 ,114 , 0 ,0 ,policial ,31 ,"guarding" ,true) end addEventHandler("onResourceStart",getRootElement() ,teste) Meta <meta> <script type = "server" src = "server.Lua" /> </meta> Edited May 28, 2020 by Luan Matheus "server.Lua" estava com a letra L em maiúsculo. Link to comment
Moderators Patrick Posted May 30, 2020 Moderators Share Posted May 30, 2020 (edited) Wrong section and language, moved to Portuguese scripting section. Edited May 30, 2020 by Patrick Link to comment
MrKAREEM Posted June 1, 2020 Share Posted June 1, 2020 On 28/05/2020 at 06:45, Luan Matheus said: Eu queria uma ajuda, estou tentando arrumá-la, mas não estou conseguindo. Roteiro function teste () guarda1 = exports ["slothBot"]:spawnBot (-2427.99, -601.721, 132.563, 60 ,114 , 0 ,0 ,policial ,31 ,"guarding" ,true) end addEventHandler("onResourceStart",getRootElement() ,teste) Meta <meta> <script type = "server" src = "server.Lua" /> </meta> Verifique se o recurso já está funcionando E a palavra policial Não sei Use este método local policial = getTeamFromName ( "Nome do time" ) Se houver algum problema, verifique os erros usando um comando /debugscript 3 Você pode aprender mais sobre depuração aqui Debugging 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