Jump to content

King12

Members
  • Posts

    437
  • Joined

  • Last visited

Everything posted by King12

  1. يمكن عندي الآمكانيه آساعد
  2. May I know where did you get that dxGUI library from?
  3. function checkboxSong() if(source == songcheckbox) then if(guiCheckBoxGetSelected(songcheckbox)) then stopSound(song) elseif not (guiCheckBoxGetSelected(songcheckbox)) then playSound(song) end end end addEventHandler("onClientGUIClick", root, checkboxSong) but? song = playSound("http://example.com/song.mp3") how is that going to work if you already wrote playSound inside your function? it should be song = "http://example.com/song.mp3"
  4. function DeleteTeam () local delteam = getTeamFromName("Team Name") if (delteam) then destroyElement(delteam) else return end end)
  5. Well you can't then.. You can destroy the object with onPlayerTarget event
  6. You have to wear by yourself, right click and wear it.
  7. You have to create the object in client-side using createObject Because server-side objects can't be destroyed by this event
  8. It's DayZ which is made by 2 guys.
  9. أهم شيء الحقوق خخخخ لا وكمان حاط R مصنف كرقم 1 في اكثر من 90 بلد هههههههههههههههه
  10. http://sketchtoy.com/63212229 مع الحقوق http://sketchtoy.com/63212247
  11. Yes, you use : setWeaponProperty to change the type of each weapon "flag_aim_arm" - bool - Uses other arm for aiming setWeaponProperty(34, "pro", "flag_aim_arm", 1000)
  12. King12

    Question

    That's what i meant by 'spamming over and over', and it wont help How do you want it then? Like this? local cars = { filePath = "txd/", txdFiles = {425,411,214}, ids = {425,411,214}, } function () for i,value in pairs(cars.txdFiles) do local txd = engineLoadTXD ( cars.filePath..value..".txd" ) for i,value1 in pairs(cars.ids) do engineImportTXD ( txd, value1 ) end It must have alot of debugs problems, but I'm just trying to get your idea. I don't know actually, but mine could be helpful and less spam. Edit : I searched for a script and I found this example : for i = 0, 3 do local tex = dxCreateTexture ( "stopbord/right/rframe"..i..".png" ) 0, 3 will be the files name.
  13. King12

    Question

    I think it's possible f.e : local vModLoader = { { 'txd','cars/infernus.txd','411'}, { 'dff','cars/infernus.dff','411'}, { 'dff','cars/hunter.dff','425'} } for index,value in ipairs ( vCommandLoader ) do outputChatBox (value[ 3 ],source,255,255,255,true ) -- This will output the 3rd value into the chat.
  14. What about now? -- Deleted I've tried everysingle way to make it work but it seems the event is bugged.
  15. King12

    Server list spam

    This server's owner is stealing our old clan name and tag. mtasa://188.40.152.219:27398 Proof that DP clan was owned by Azoo[z] : but it just closed 8 months ago, and as you see someone re-opened it with the same name and clan name. what's possible to do for him?
  16. Will, you gotta make a label above that "EditField", you can't make the field invisible and the text visible in one function.
  17. السسلام عليكم, آول شي الكار هايد عباره عن سكربت يخفي السيارات اللي حولك ويطلعها طبعاً ينفع للريس آكثر شي آمس سويت سكربت خفيف كذا اللي هو كار هايد بس بالصور وتقدر تفعل آنه يطلع نفس الكلام بالشات وتقدر تعطل انه يطلع الكلام بالشات + تعدل الزر اللي يعطل ويفعل الكار هايد الرابط : https://community.multitheftauto.com/in ... s&id=10179 طبعاً هذا آول سكربت آسويه للحين.. والجاي آحسن وآفضل بإذن الله
  18. Firstly, sorry for that short title I reached the limit. Secondly, I just want to know what's the easiest way to make the value goes from 1 to 0 with Fractions smoothly like 0.4 with a timer ofc
  19. function Hit(weapon, _, _, _, _, _, hitElement) if weapon == 31 then if ( getElementType ( hitElement ) == "object" ) and ( getElementModel ( hitElement ) == 2021 ) then destroyElement(hitElement) end end end addEventHandler("onClientPlayerWeaponFire", localPlayer, Hit) or function Hit(weapon, _, _, _, _, _, hitElement) if weapon == 31 and getElementType ( hitElement ) == "object" ) and ( getElementModel ( hitElement ) == 2021 ) then destroyElement(hitElement) end addEventHandler("onClientPlayerWeaponFire", localPlayer, Hit) not sure of them.
  20. https://community.multitheftauto.com/ind ... s&id=10179 I just want someone to change my resource's name from carfade to carhide, it's a mistake.
  21. Client Side addEvent("MarkerHit", true) addEventHandler( "MarkerHit", localPlayer, function () window = guiCreateWindow (237, 146, 149, 206, "Aeroporto Las Venturas", false) guiWindowSetSizable(window, false) guiSetVisible(window, true) outputChatBox('Object Created !',255,255,0) button1 = guiCreateButton(9, 29, 130, 28, "Ilha Perdida", false, window) guiSetFont(button1, "default-bold-small") showCursor ( true ) end end) function click1 () button2 = guiCreateButton(9, 72, 130, 28, "New City", false, window) guiSetFont(button2, "default-bold-small") end addEventHandler ( "onClientGUIClick", button1, click1, true ) Server Side local myMarker = createMarker(1358.8127441406,1679.6812744141,9.8203125, 'cylinder', 2.0, 255, 0, 0, 150) local myBlip = createBlip( 1358.8127441406,1679.6812744141,9.8203125 ) function HitMarker ( hitElement ) if getElementType ( hitElement ) == "player" then triggerClientEvent( source, "MarkerHit", source) else outputChatBox("Get out of the car", hitElement, 255,255,255,true) end end addEventHandler("onMarkerHit", myMarker, HitMarker)
  22. آتوقع يبي لك تسوي تيبل للجنوط بعدين تسوي لها لود للقريد ونفس الشي مع الفنكشن هذا
×
×
  • Create New...