Jump to content

[AJUDA] Setar Arma em Ped


Recommended Posts

eu queria setar um ped apenas com arma, sem precisar atirar nada, so ficar estatico com arma

 

script

 

addCommandHandler( "ped", function (    ) 
   if ( isElement( ped ) ) then destroyElement( ped ) end 
     ped = createPed ( 100, 2474.6999511719, -1661.8000488281, 13.300000190735 ) 
    if ( ped ) then 
        giveWeapon ( ped, 27, 500, true ) 
    end 
end ) 

meta

<meta>
	<script src="server.lua" type="client" />
</meta>

estaria certo os 2, porque mesmo com esse script o ped nao aparece

Link to comment
1 minute ago, DNL291 said:

O script funciona, só havia um erro no arquivo meta que o Lord Henry já mostrou.

eu troquei o client pelo server, mas nao funcionou

<meta>
	<script src="server.lua" type="server" />
</meta>

 

Edited by SchmidtNeO
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...