Jump to content

Search the Community

Showing results for tags 'filewrite'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. I was trying to get a table of every skin and their correspondent voice (because I couldn't find them), but while I was trying to print it, FileWrite only writes the first line. Technically, the idea is that each second the game changes the player skin (as I couldn't manage to create a ped and retrieve a voice), and gets the skin id, and voice ids, and prints it, giving a nice table with all of them: addCommandHandler ( "gv", function () local localFile = fileCreate("test.csv") fileWrite(localFile, "PEDMODEL, VOICETYPE, VOICENAME;") local i = 0 setTimer(function () setElementModel(localPlayer, i) local voiceType, voiceName = getPedVoice(localPlayer) fileWrite(localFile, tostring(i)..", "..tostring(voiceType)..", "..tostring(voiceName)..";") i = i + 1 end, 1000, 10) fileClose(localFile) end )
×
×
  • Create New...