Jump to content

Turbesz

Members
  • Posts

    245
  • Joined

  • Last visited

Everything posted by Turbesz

  1. I want make a bass effect with a image like this (speaker image in middle, not the white lines): How can i do this? What functions are needed?
  2. I tried a method, which works with one table, but now, when i tried merge 2 table datas, this method does not working... This is my code (not full) I tried to highlight the important parts, if necessary, I will send in pm the full code: I want show maximum 10 rows, and if have more rows, then show another rows with scrolling. This working fine with 1 table, and loop, but now does not working at all. It always show all rows, even if there are already more than 10, and ofc cannot scrolling. What wrong?? How to fix this? I've been trying fix this for hours, but nothing...
  3. Thank you, that's exactly what I want!
  4. for example i have 2 table with 2 different data and i want to show them in a column like this: [Table name1]: Data1 Data2 [Table name2]: Anotherdata1 Anotherdata2 How can i do it this with loops?
  5. Lol, thanks. And how to install this? Because the "Installation" part in readme not described
  6. I want to make a youtube radio script, but none of the online converters API work How to make a youtube API where to play music on the server? Where can i find a tutorial for this? I think must be installed on a vps the API, then somehow call on server (as with a online converter api), when a player enter a command with a yt link. But sadly i can't find anything about this on the net...
  7. I have this code: I use onPlayerSpawn instead of onPlayerLogin, because if the player login the player does not spawn immediately. Working for some players but not working for all players... What wrong? How can i fix that?
  8. I have a paintjob system, and when a player choose a paintjob from the panel and then he put on the car, the all players FPS drops 10-20 always for a few seconds... How can i fix that? This is the add paintjob part of my code: function addVehiclePaintjob(vehicle, paintjobID) if vehicle and paintjobID then local availablePaintjobs = getAvailablePaintjobs(getElementModel(vehicle)) if availablePaintjobs[paintjobID] then removeVehiclePaintjob(vehicle) vehiclesWithPaintjob[vehicle] = {} vehiclesWithPaintjob[vehicle][1] = dxCreateShader("textureChanger.fx", 0, 100, false, "vehicle") vehiclesWithPaintjob[vehicle][2] = dxCreateTexture("textures/" .. availablePaintjobs[paintjobID][2]) if vehiclesWithPaintjob[vehicle][1] and vehiclesWithPaintjob[vehicle][2] then dxSetShaderValue(vehiclesWithPaintjob[vehicle][1], "TEXTURE", vehiclesWithPaintjob[vehicle][2]) engineApplyShaderToWorldTexture(vehiclesWithPaintjob[vehicle][1], availablePaintjobs[paintjobID][1], vehicle) end end end end
  9. I tried many way, but none of them works... The cars texture is white after a script restart and sometimes crashing the game due to the bug. So, if anyone has modded cars with tuning, then could help me how to do it while avoiding the mistake? I think i'm ruining something (because the car mods working without load tuning parts) but i don't know what and where. Thanks in advance!
  10. If i add a tuneable car to my server, the car texture is white... Wth?! How can i fix this? This is the load code: function replaceModel() local txd txd = engineLoadTXD("f90/sultan.txd", 560 ) engineImportTXD(txd,560 ) dff = engineLoadDFF("f90/sultan.dff",560 ) engineReplaceModel(dff,560 ) dff = engineLoadDFF("f90/exh_a_s.dff",1028 ) engineReplaceModel(dff, 1028) dff = engineLoadDFF("f90/exh_c_s.dff", 1029) engineReplaceModel(dff,1029 ) dff = engineLoadDFF("f90/fbmp_a_s.dff", 1169) engineReplaceModel(dff, 1169) dff = engineLoadDFF("f90/fbmp_c_s.dff", 1170) engineReplaceModel(dff, 1170) dff = engineLoadDFF("f90/rbmp_a_s.dff",1141 ) engineReplaceModel(dff,1141 ) dff = engineLoadDFF("f90/rbmp_c_s.dff",1140 ) engineReplaceModel(dff,1140) dff = engineLoadDFF("f90/rf_a_s.dff",1032 ) engineReplaceModel(dff,1032 ) dff = engineLoadDFF("f90/rf_c_s.dff",1033 ) engineReplaceModel(dff, 1033) dff = engineLoadDFF("f90/spl_a_s_b.dff", 1138) engineReplaceModel(dff, 1138) dff = engineLoadDFF("f90/spl_c_s_b.dff",1139 ) engineReplaceModel(dff, 1139) dff = engineLoadDFF("f90/wg_l_a_s.dff", 1026) engineReplaceModel(dff, 1026) dff = engineLoadDFF("f90/wg_l_c_s.dff",1031 ) engineReplaceModel(dff,1031 ) dff = engineLoadDFF("f90/wg_r_a_s.dff",1027 ) engineReplaceModel(dff,1027 ) dff = engineLoadDFF("f90/wg_r_c_s.dff",1030 ) engineReplaceModel(dff, 1030) ------- txd = engineLoadTXD("astonmartin/uranus.txd", 558 ) engineImportTXD(txd,558 ) dff = engineLoadDFF("astonmartin/uranus.dff", 558) engineReplaceModel(dff,558 ) dff = engineLoadDFF("astonmartin/exh_a_u.dff", 1092 ) engineReplaceModel(dff,1092 ) dff = engineLoadDFF("astonmartin/exh_c_u.dff", 1089) engineReplaceModel(dff, 1089) dff = engineLoadDFF("astonmartin/fbmp_a_u.dff", 1166) engineReplaceModel(dff,1166 ) dff = engineLoadDFF("astonmartin/fbmp_c_u.dff", 1165) engineReplaceModel(dff, 1165) dff = engineLoadDFF("astonmartin/rbmp_a_u.dff", 1168) engineReplaceModel(dff, 1168) dff = engineLoadDFF("astonmartin/rbmp_c_u.dff",1167 ) engineReplaceModel(dff,1167 ) dff = engineLoadDFF("astonmartin/rf_a_u.dff", 1088) engineReplaceModel(dff,1088 ) dff = engineLoadDFF("astonmartin/rf_c_u.dff", 1091) engineReplaceModel(dff, 1091) dff = engineLoadDFF("astonmartin/spl_a_u_b.dff",1164 ) engineReplaceModel(dff,1164 ) dff = engineLoadDFF("astonmartin/spl_c_u_b.dff",1163 ) engineReplaceModel(dff,1163 ) dff = engineLoadDFF("astonmartin/wg_l_a_u.dff", 1090) engineReplaceModel(dff, 1090) dff = engineLoadDFF("astonmartin/wg_l_c_u.dff",1093 ) engineReplaceModel(dff,1093 ) dff = engineLoadDFF("astonmartin/wg_r_a_u.dff",1094 ) engineReplaceModel(dff,1094 ) dff = engineLoadDFF("astonmartin/wg_r_c_u.dff",1095 ) engineReplaceModel(dff,1095 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler ( "reloadcar", replaceModel ) Sometimes a mta restart fix this, but if i restart the script then again not good...
  11. umm a last question: how to do it that puts the data in a separate table? because the xml file have a lot of groups, and I want to put the elements of each group in a separate table, i tried to do it but failed
  12. I already added the xml file in meta, but the outputchatbox part does not working, because i got this warning: "expected string at argument 1, got table" This is the xml file (the default skins.xml from freeroam script): <group name="Special"> <skin id="1" name="Truth" keywords="truth,male,white,hippie"/> <skin id="2" name="Maccer" keywords="maccer,male,white,:O"/> <skin id="265" name="Tenpenny" keywords="officer,tenpenny,male,black,cop"/> <skin id="266" name="Pulaski" keywords="officer,pulaski,male,white,cop"/> <skin id="267" name="Hern" keywords="officer,hern,male,latin"/> <skin id="268" name="Dwayne" keywords="dwayne,male,white,mechanic"/> <skin id="269" name="Big Smoke" keywords="big,smoke,male,fat,black,grove,street"/> <skin id="270" name="Sweet" keywords="male,sweet,johnson,black,grove,street"/> <skin id="271" name="Ryder" keywords="male,grove,street,black,ryder"/> <skin id="272" name="Forelli Guy" keywords="forelli,white,itallian"/> <skin id="290" name="Rose" keywords="rose,white,vice,city,lawyer"/> <skin id="291" name="Kent Paul" keywords="kent,paul,white,vice,city"/> <skin id="292" name="Cesar" keywords="cesar,lastin,male"/> <skin id="293" name="OG Loc" keywords="og,loc,black,rapper,grove,street,male"/> <skin id="294" name="Wuzi Mu" keywords="wuzi,mu,chinese,china,town,male"/> <skin id="295" name="Mike Toreno" keywords="mike,toreno,government,agent,white,male"/> <skin id="296" name="Jizzy" keywords="jizzy,club,pimp,black,male"/> <skin id="297" name="Madd Dogg" keywords="madd,dogg,black,rapper,male"/> <skin id="298" name="Catalina" keywords="catalina,liberty,city,latin,female"/> <skin id="299" name="Claude" keywords="calude,libery,city,gta,3,III,white,male,silent,protagonist"/> <skin id="300" name="Ryder" keywords="ryder,male,grove,street,black"/> <skin id="301" name="Ryder Robber" keywords="ryder,robber,male,grove,street,black"/> <skin id="302" name="Emmet" keywords="emmet,male,old,black,guns,weapon,dealer"/> <skin id="303" name="Andre" keywords="andre,white,male"/> <skin id="304" name="Kendl" keywords="kendl,johnson,black,female"/> <skin id="305" name="Jethro" keywords="jethro,male,white,mechanic"/> <skin id="306" name="Zero" keywords="zero,male,white,nerd"/> <skin id="307" name="T-bone Mendez" keywords="t,bone,mendez,t-bone,latin,male"/> <skin id="308" name="Sindaco Guy" keywords="sindaco,italian,male,white"/> <skin id="309" name="Janitor" keywords="janitor,casino,male,latin"/> <skin id="310" name="Big Bear" keywords="big,bear,druggie,grove,sreet"/> <skin id="311" name="Big Smoke Vest" keywords="big,smoke,male,fat,black,grove,street,ballas"/> <skin id="312" name="Physco" keywords="physco,army,camo,camoflage,male,white"/> </group>
  13. I want insert datas from skins.xml to a table from which I can request data with loop, but does not working This is my code: local tabla = {} local xml = xmlLoadFile ( "skins.xml" ) local info = xmlFindChild ( xml, "skin", 0 ) local children = xmlNodeGetChildren(xml) if info then for i, node in ipairs(children) do local id = xmlNodeGetAttributes ( node, "id" ) table.insert(tabla,id) end end xmlUnloadFile (xml) function teszt() for k, v in ipairs(tabla) do outputChatBox(v) end end addCommandHandler("asd",teszt) what wrong?
  14. thanks, but i don't want to place it in the middle of the screen, I want put in the middle of a button. The first one is is in a perfect place, but the second one not (at my resolution yes, but other resolutions not, because moves, the first one doesn't do that).
  15. Maybe, but why? I want to put in the middle the second text and with left align it looks stupid So can i fix this somehow, without changing to left align?
  16. I wrote two texts with dxdrawtext and with same calculations for all resolution and one text is in the right place but another is not with same method... wth? anyone can help me? code: local sx, sy = guiGetScreenSize() function draw() dxDrawText("#FFB540Test text test text test text test text", sx/2-140-10,sy/2-320/2, 0, sy/2-515/2+36, tocolor(255,255,255,255), 1, Roboto, "left", "center",false,false,false,true) dxDrawText("text2 text2 text2 text2 text2 text2 text2 text2", sx/2+890-10,sy/2+940/2, 0,sy/2-515/2+36, tocolor(255,255,255,255), 1, Roboto, "center", "center",false,false,false,true) end addEventHandler("onClientRender",root,draw) the text with colorcode it is in a good place on every resolution but "text2" moves in another resolutions... why?
  17. i tried this way too, but does not working the timer "Expected player at argument 1, got nil"
  18. umm i tried this way, but if player does not on fire still cannot shoot with weapon function teszt() local wep = getPedWeapon(source) if isPedOnFire (source) and wep == 24 then toggleControl(source,"fire", false) else toggleControl(source,"fire", true) end end addEventHandler("onPlayerWeaponFire",root,teszt)
  19. How can i disable weapon use (shooting) while player is on fire (for example because players threw her molotov)? Because GTA SA have a worrying bug with which you can shoot indefinitely with desert eagle while you burn, so i want to fix that somehow
×
×
  • Create New...