Jump to content

Recommended Posts

Oi! O script correto é:

Cria 2 arquivos:

client.lua

function playAudio() 
   playSound ( "song.mp3" ) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, playAudio ) 
  

meta.xml

<meta> 
    <file src="song.mp3" /> 
    <script src="client.lua" type="client" /> 
</meta> 

Vc tem que renomear o arquivo de musica song.mp3 :wink:

Link to comment

txd.lua

  
    txd = engineLoadTXD ( "data/euros.txd" ) 
    engineImportTXD ( txd, 587 ) --VC TEM Q PONER É ID DO OBJETO!!! 
  

meta.xml

<meta> 
    <script src="client.lua" type="client" /> 
    <file src="txdarquivo.txd" /> 
</meta> 

Link to comment
  • 1 month later...

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...