Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Cierro el tema antes de que termine en una guerra de insultos. P.D: lmoreloss, madura.
  2. By valid I mean the TXD and DFF file.
  3. Are these skins valid? did it replace any of them?
  4. Look, I wasted my time removing all the EXTRA "}" from the script, and now you won't use it? are you kidding me? Just copy and paste my last post script.
  5. I've downloaded. Nice one, looks pretty nice .
  6. You're welcome. P.S: Why hide the code? it may help someone else, don't be selfish.
  7. You created the table wrong, here I fixed it: local skins = {{fileName="skin1", skinID=9}, {fileName="skin2", skinID=10}, {fileName="skin3", skinID=11}, {fileName="skin4", skinID=12}, {fileName="skin5", skinID=13}, {fileName="skin6", skinID=14}, {fileName="skin7", skinID=15}, {fileName="skin8", skinID=16}, {fileName="skin9", skinID=17}, {fileName="skin10", skinID=18}, {fileName="skin11", skinID=19}, {fileName="skin12", skinID=20}, {fileName="skin13", skinID=21}, {fileName="skin14", skinID=22}, {fileName="skin15", skinID=23}, {fileName="skin16", skinID=24}, {fileName="skin17", skinID=25}, {fileName="skin18", skinID=26}, {fileName="skin19", skinID=27}, {fileName="skin20", skinID=28}, {fileName="skin21", skinID=29}, {fileName="skin22", skinID=30}, {fileName="skin23", skinID=31}, {fileName="skin24", skinID=32}, {fileName="skin25", skinID=33}, {fileName="skin26", skinID=34}, {fileName="skin27", skinID=35}, {fileName="skin28", skinID=36}, {fileName="skin29", skinID=37}, {fileName="skin30", skinID=38}, {fileName="skin31", skinID=39}, {fileName="skin32", skinID=40}, {fileName="skin33", skinID=41}, {fileName="skin34", skinID=43}, {fileName="skin35", skinID=44}, {fileName="skin36", skinID=45}, {fileName="skin37", skinID=46}, {fileName="skin38", skinID=47}, {fileName="skin39", skinID=48}, {fileName="skin40", skinID=49}, {fileName="skin41", skinID=50}} function load() for index, skin in pairs(skins) do engineImportTXD(engineLoadTXD ( "skins/".. skin.fileName ..".txd" ), tonumber(skin.skinID)) engineReplaceModel(engineLoadDFF ( "skins/".. skin.fileName ..".dff", 0 ), tonumber(skin.skinID)) end end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if string.find(version.mta, "1.1.1") then setTimer ( load, 1000, 1) end end)
  8. Go in game and login as admin, then write this command in the chat: /debugscript 3, and then restart the skins resource, see if it outputs any error.
  9. chat_range = 100 function onChat(player,_,...) cancelEvent() local x, y = getElementPosition(player) local circlearea = createColSphere ( x, y, 5, chat_range ) local msg = table.concat({...}, " ") local r,g,b = 255,255,255 local cmd = gettok(msg, 1, 32) local value = gettok(msg, 2, 32) for i,v in ipairs(getElementsWithinColShape(circlearea, "player")) do if cmd ~= "" and cmd ~= nil then if cmd == "do" and value ~= "" and value ~= nil then outputChatBox("value: " .. value, v,r,g,b,true) else outputChatBox(getPlayerName(player).." says: #ffffff"..msg,v,r,g,b,true) end end end destroyElement ( circlearea ) end addCommandHandler("Chat",onChat) addEventHandler ( "onPlayerChat", getRootElement(), function (msg) onChat(source,_,msg) end)
  10. Check the server console if it says "failed to load" or something similar.
  11. createColSphere requires 4 arguments, posX, posY, posZ, radius.
  12. Yes, it doesn't has to be a zip too, it can be a folder.
  13. Just type /refresh (in game) or refresh in the console (black console window) to seek for new resources.
  14. Seems to be correct, why don't you try instead of asking?
  15. script.lua is EPICLLY wrong, you are not using the table for anything really.. local skins = {{fileName="skin1", skinID=9}, {fileName="skin2", skinID=10}}, {fileName="skin3", skinID=11}}, {fileName="skin4", skinID=12}}, {fileName="skin5", skinID=13}}, {fileName="skin6", skinID=14}}, {fileName="skin7", skinID=15}}, {fileName="skin8", skinID=16}}, {fileName="skin9", skinID=17}}, {fileName="skin10", skinID=18}}, {fileName="skin11", skinID=19}}, {fileName="skin12", skinID=20}}, {fileName="skin13", skinID=21}}, {fileName="skin14", skinID=22}}, {fileName="skin15", skinID=23}}, {fileName="skin16", skinID=24}}, {fileName="skin17", skinID=25}}, {fileName="skin18", skinID=26}}, {fileName="skin19", skinID=27}}, {fileName="skin20", skinID=28}}, {fileName="skin21", skinID=29}}, {fileName="skin22", skinID=30}}, {fileName="skin23", skinID=31}}, {fileName="skin24", skinID=32}}, {fileName="skin25", skinID=33}}, {fileName="skin26", skinID=34}}, {fileName="skin27", skinID=35}}, {fileName="skin28", skinID=36}}, {fileName="skin29", skinID=37}}, {fileName="skin30", skinID=38}}, {fileName="skin31", skinID=39}}, {fileName="skin32", skinID=40}}, {fileName="skin33", skinID=41}}, {fileName="skin34", skinID=43}}, {fileName="skin35", skinID=44}}, {fileName="skin36", skinID=45}}, {fileName="skin37", skinID=46}}, {fileName="skin38", skinID=47}}, {fileName="skin39", skinID=48}}, {fileName="skin40", skinID=49}}, {fileName="skin41", skinID=50}} function load() for index, skin in pairs(skins) do engineImportTXD(engineLoadTXD ( "skins/".. skin.fileName ..".txd" ), tonumber(skin.skinID)) engineReplaceModel(engineLoadDFF ( "skins/".. skin.fileName ..".dff", 0 ), tonumber(skin.skinID)) end end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if string.find(version.mta, "1.1.1") then setTimer ( load, 1000, 1) end end) That should work.
  16. It just doesn't play the video at all.
  17. dxDrawText fonts: "default": Tahoma "default-bold": Tahoma Bold "clear": Verdana "arial": Arial "sans": Microsoft Sans Serif "pricedown": Pricedown (GTA's theme text) "bankgothic": Bank Gothic Medium "diploma": Diploma Regular "beckett": Beckett Regular If you want to create your own font, use dxCreatefont
  18. Why didn't you just use the script I gave you in the other topic? viewtopic.php?f=91&t=37337 It was the only thing you needed.
  19. Pues, no, la verdad es que me parece mas graciosa mi manera .
  20. Are you reading CAREFULLY my posts? because I think you are not. Quote from my past post: "Create two files: script.lua, meta.xml." P.S: In meta.xml the FILE NAMES MUST BE THE SAME AS IN THE FOLDER, so skin80.txd must be a VALID FILE name.
  21. The tutorial is not for a map, the tutorial example is for a map, also, I gave you everything, the script, the meta.xml, you only have to create a folder in "resources" folder at your server directory and create two files: script.lua, meta.xml.
×
×
  • Create New...