Jump to content

3B00DG4MER

Members
  • Posts

    512
  • Joined

  • Last visited

Everything posted by 3B00DG4MER

  1. First row contain IDs Second contain Vehicle names GUIEditor.gridlist[1] = guiCreateGridList(30, 124, 337, 221, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "ID", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.7) for i = 1, 6 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "596", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "Police Car (Los Santos)", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "597", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 2, "Police Car (San Fierro)", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "598", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 2, 2, "Police Car (Las Venturas)", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "523", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 3, 2, "HPV1000", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "528", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 4, 2, "FBI Truck", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 5, 1, "560", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 5, 2, "Sultan", false, false)
  2. Doesn't work it mean there is a bug with that function
  3. Do you mean this ? But it moving,You can change the images and the model
  4. There is No Bug But it doesn't set Color of Vehicle
  5. Hello,Today i made a Spawn System which Spawn Vehicle From Selected Row It's work perfectly but there is one Problem : i have add if the vehicle is Sultan set the color of sultan blue sky it show : Bad argument @ 'setVehicleColor' Client Side: function createveh() local pspawner = getLocalPlayer() local x, y, z = getElementPosition ( pspawner ) local vehicle = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) guiSetVisible(GUIEditor.window[1], false) outputChatBox("You selected "..vehicle..".",pspawner) createVehicle ( vehicle, x, y, z, 0,0,90 ) if vehicle == "560" then setVehicleColor ( vehicle, 7, 7, 0, 0 ) end showCursor(false) end addEventHandler("onClientGUIClick", spawn, createveh, false)
  6. Thanks can you fix the new post
  7. Hello,Today i made script which on Hit it -1 Wanted Level But,When i hit it nothing happend Client side : function bribe () createPickup ( 2507.1298828125, -1701.2734375, 14.508857727051, 3, 1247, 25000, 1) end addEventHandler ( "onResourceStart", getRootElement(), bribe ) function pickedUpWantedCheck ( player ) if ( getElementType(source) == "pickup" ) then if getPickupType ( source ) == 3 then if (getElementData ( source, "model" ) == "1247" ) then local level = getPlayerWantedLevel(player) if ( level > 0 ) then setPlayerWantedLevel ( player, level-1 ) end end end end end addEventHandler ( "onPickupHit", getRootElement(), pickedUpWantedCheck )
  8. Thanks But i have said pickup only,i have already made setPlayerWantedLevel
  9. خلاص نفس الماب يا ريت يا المراقب اغلق الموضوع
  10. Hello,Today i made all things there is one thing,I made it when you pickup the model 1247 (Wanted Model) -1 Wanted level Can you give me the code to create pickup with custom model (No mapeditor)
  11. السلام عليكم ورحمة الله تعالى و بركته انا بغيت ماب السجن كان عندي وحذفته بالخطا وما وجدتو ارجو ذلك الماب تتطابق مع مود bab.zip
  12. Hello,Today i made when Police hit a wanted player 3 times with nightstick will Jailed but There is Problem if get him to jail,i don't want to all Players go to one Room i have 3 Room Positions can you do players teleport to random room You use setElementPosition afiak
  13. I have Problem fix it please Attempt to compare Boolean with number when i attack him 3 Times
  14. You do a bug when Update, i have fixed it local cooldown = 5 -- the amount of time after the attack combo resets if no damage is detected anymore local timer = false addEventHandler("onPlayerDamage",root,function(attacker,weapon) if getTeamName(getPlayerTeam(attacker)) == "Police" and weapon == 3 and getPlayerWantedLevel(source)>=1 then if timer then resetTimer(timer) end setElementData(source,"times_attacked",getElementData(source,"times_attacked") and getElementData(source,"times_attacked")+1 or 1) if not timer then timer = setTimer( function() if getElementData(source,"times_attacked") then removeElementData(source,"times_attacked") end end,cooldown*1000,1) end if getElementData(source,"times_attacked")>=3 then if getElementData(source,"times_attacked") then removeElementData(source,"times_attacked") end if timer then killTimer(timer) timer = false end -- your stuff here end end end)
  15. Can you do it if the Police Attacked Him 3 Times Like GTA-AR server Or CIT or SAUR
  16. Normal Script if the player is in a Police Team when attack someone have 1 star or Above,the Attacked player will teleport to somewhere (I have the jail map,Just give me the script i'll edit)
  17. Hello,Today i want A script which when you Attack(I'm In police Team) a someone have 1 or Above with Nightstick Will Get to Jail,I made a Jail just do teleport to anywhere
  18. Thank you for all your work
  19. Thankkkks Can you give a code which change Font (Not GTA sa Fonts,Import One)
  20. Problem with line "if (distance <= 12) then" Attempt to compare Boolean with number i think you must convert distance to number tonumber(distance) afaik
×
×
  • Create New...