Jump to content

[AJUDA] Setar arma em PED


Recommended Posts

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 by Luan Matheus
"server.Lua" estava com a letra L em maiúsculo.
Link to comment
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...