Jump to content

Red-Pitbull

Members
  • Posts

    21
  • Joined

  • Last visited

Details

  • Gang
    RPG

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Red-Pitbull's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. hi all guys anybody tell me how i make custom gui buz i dont like default gui .if anybody khow it pls tell me thanks in advance
  2. thanks guys i am thinking to upgrade this criminals job as JR10 say it old code and can you tell me how i make criminals rank (EX:when player join Criminals job he do 100 illegel thing then he get next rank i just added rank name on code or also show rank on tab) anymore idea pls tell me how to make it
  3. hi all i make criminl job but when criminal player kill player he not get wanted level why?? here is code local marker = createMarker( 2000.763671875, 1539.0169677734, 13.5859375, "Cylinder", 1.5, 0, 0, 0, 10) local ped = createPed (21, 2000.6636962891, 1538.318359375, 13.5859375) createBlip (2000.763671875, 1539.0169677734, 13.5859375, 23 ,2 ) myFont = dxCreateFont( "SF Automaton Bold.ttf", 20 ) -- Create custom font GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_gridlist = {} windowjob = guiCreateWindow(392, 176, 408, 437, "Criminal Job", false) guiWindowSetSizable(windowjob, false) guiSetVisible(windowjob, false) GUIEditor_Memo[1] = guiCreateMemo(18, 30, 362, 221, "Hi,\nFeatures of Criminal job :\n-Turf with your Gang\n-\n-\nDo you want to join ?", false, windowjob) guiMemoSetReadOnly(GUIEditor_Memo[1], true) GUIEditor_gridlist[1] = guiCreateGridList(21, 264, 359, 115, false, windowjob) guiGridListAddColumn(GUIEditor_gridlist[1], "ID", 0.5) guiGridListAddColumn(GUIEditor_gridlist[1], "Skin Name", 0.5) for i = 1, 5 do guiGridListAddRow(GUIEditor_gridlist[1]) end guiGridListSetItemText(GUIEditor_gridlist[1], 0, 1, "29", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 0, 2, "White Dealer", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 1, 1, "28", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 1, 2, "Black Dealer", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 2, 1, "19", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 2, 2, "Beach Gangsta", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 3, 1, "21", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 3, 2, "Striped Gangsta", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 4, 1, "47", false, false) guiGridListSetItemText(GUIEditor_gridlist[1], 4, 2, "Top Button Essey", false, false) GUIEditor_Button[1] = guiCreateButton(21, 379, 175, 48, "Take job !", false, windowjob) GUIEditor_Button[2] = guiCreateButton(206, 379, 174, 48, "Cancel", false, windowjob) function SAPDjob(hitElement) setElementData ( localPlayer, "ownskin", getElementModel (localPlayer) ) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", marker, SAPDjob) function FBIjobleave(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", marker, SAPDjobleave) function setskintest() local skin = guiGridListGetItemText ( GUIEditor_gridlist[1], guiGridListGetSelectedItem ( GUIEditor_gridlist[1] ), 1 ) setElementModel ( localPlayer, skin ) end addEventHandler ( "onClientGUIClick", GUIEditor_gridlist[1], setskintest, false ) function joinTeam() triggerServerEvent("gov",localPlayer) local skin = guiGridListGetItemText ( GUIEditor_gridlist[1], guiGridListGetSelectedItem ( GUIEditor_gridlist[1] ), 1 ) if skin ~= 0 or getElementData(localPlayer, "ownskin") then guiSetVisible(windowjob, false) showCursor(false) setElementModel ( localPlayer, skin ) else exports["TopBarChat"]:sendClientMessage ("You didn't select a Skin", 255, 0, 0 ) end end addEventHandler("onClientGUIClick", GUIEditor_Button[1] , joinTeam, false) function removeSAPDWindow() guiSetVisible(windowjob, false) showCursor(false) setElementModel(localPlayer, getElementData(localPlayer, "ownskin")) end addEventHandler("onClientGUIClick", GUIEditor_Button[2] , removeSAPDWindow, false) local maxDistance = 12 -- the distance showing 3dtext local ped = createPed (21, 2000.6636962891, 1538.318359375, 13.5859375) addEventHandler ( "onClientRender", root, function ( ) local pX, pY, pZ = getElementPosition ( localPlayer ) local pedX, pedY, pedZ = getElementPosition ( ped ) local distance = getDistanceBetweenPoints3D ( pX, pY, pZ, pedX, pedY, pedZ ) if ( distance <= 12 ) then local x, y = getScreenFromWorldPosition ( pedX, pedY, pedZ ) if ( x and y ) then dxDrawText( "Criminal", x, y+1.5, _, _, tocolor( 255, 0, 0, 255 ), 1, myFont, "center", "center" ) end end end ) function createSAPDTeam () SAPDteam = createTeam ("Criminal", 255, 0, 0) end function joincriminal() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then local wlevel = getPlayerWantedLevel( source ) end end addEventHandler ("onResourceStart", resourceRoot, createSAPDTeam) function joinSAPD() setPlayerTeam(source,SAPDteam) setElementFrozen ( ped, true ) setElementHealth ( ped, 180 ) giveWeapon ( source, 3 ) giveWeapon ( source, 31,2500 ) setElementData( source, "Occupation", "Government", true ) setElementData ( source, "Rank", "Federal Agent" ) end addCommandHandler("criminal",joinSAPD) addEvent("gov", true) addEventHandler("gov",root,joinSAPD) anyone tell how i do this
  4. hi all anybody tell me how i make bouncing ball coming down like saur login panel i see on wiki but i cant understand please tell me thanks in advanced
  5. Really you give free server i sent you form about server and i wait 1 half day but don't response please give check my form and give me i get this error... This Site has reached its Max free servers. Donate to get one now! Email = [email protected]
  6. hi all guys.... anybody tell me it is possible to i can run my server 24/7 own my pc and which thing i need to host......
  7. ok thanks and one more question how i make facebook like cit. player can add friends,block friends and player can create his status all player see this on his timelime and also share on friends timeline pls tell which function and element i use
  8. like player press sms button. sms window open
  9. hi all guys this is phone script download from community i remove tab panel and create button i realy dont khow how to use this onClientGUIClick and where is use it ---client side--- sound = nil volume = 50 bindKey( "B", "down", "phone" ) -- Radio list local radio = { { "http://www.listenlive.eu/mixmegapol.m3u", "Mix megapol" }, { "http://stream-ice.mtgradio.com:8080/stat_bandit.m3u", "Bandit rock" }, { "http://www.listenlive.eu/nrj_se.m3u", "NRJ Sweden" }, { "http://sverigesradio.se/topsy/direkt/2576-hi-aac.pls", "Malmö (Hiphop/RnB)" }, { "http://scb2.fantis.se:8080/listen.pls", "Pirate rock" }, { "http://stream-ice.mtgradio.com:8080/stat_rix_fm.m3u", "Rix FM" }, { "http://www.listenlive.eu/rockklassiker.m3u", "Classical Rock" }, { "http://www.listenlive.eu/thevoice_se.m3u", "The voice" }, { "http://50.22.212.196:8132", "Underground radio" }, { "http://relay.181.fm:8068", "Old School Rap" }, { "http://tunein.t4e.dj/hard/dsl/mp3", "Techno4ever Hard stream" }, { "http://tunein.t4e.dj/club/dsl/mp3", "Techno4ever Clup stream" }, { "http://sj128.hnux.com/listen.pls", "Smooth Jazz" }, { "http://listen.di.fm/public3/clubdubstep.pls?a5e45b0f69e2910bde3edcd4", "Digitally Imported Big Room House" }, { "http://listen.di.fm/public3/club.pls?a5e45b0f69e2910bde3edcd4", "Digitally Imported Club Dubstep" }, { "http://listen.di.fm/public3/electro.pls?a5e45b0f69e2910bde3edcd4", "Digitally Imported Club Sounds" }, { "http://listen.di.fm/public3/electro.pls?a5e45b0f69e2910bde3edcd4", "Digitally Imported Electro House" }, { "http://listen.di.fm/public3/djmixes.pls?a5e45b0f69e2910bde3edcd4", "Digitally Imported DJ mixes" }, } local service = { "(911) Police", "(911) Ambulance", "(911) Fire Department", "Mechanic", "Taxi", "Pilot", "Bus Driver", "Fast food delivery", } -- Create window local x,y = guiGetScreenSize() local img = guiCreateStaticImage( 586, 178, 214, 422, ":nokialumia/lumia920.png", false) -- button for apps phone = guiCreateButton(17, 84, 46, 40, "Phone", false, GUIEditor.staticimage[1]) sms = guiCreateButton(63, 84, 46, 40, "sms", false, GUIEditor.staticimage[1]) radio = guiCreateButton(109, 84, 46, 40, "radio", false, GUIEditor.staticimage[1]) local playerList = guiCreateGridList( 0, 0.35, 1, 0.56, true, tabPlayers ) local smsTextBox = guiCreateMemo( 0, 0, 1, 0.34, "", true, tabPlayers ) local button3 = guiCreateButton( 0, 0.91, 1, 0.08, "Send SMS", true, tabPlayers ) local column = guiGridListAddColumn( playerList, "People", 0.85 ) if ( column ) then --If the column has been created, fill it with players for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( player ), false, false ) end end local radioList = guiCreateGridList ( 0, 0, 1, 0.9, true, tabRadio ) local editBox = guiCreateEdit ( 0.67, 0.91, 0.15, 0.08, "50", true, tabRadio ) local button5 = guiCreateButton( 0.50, 0.91, 0.17, 0.08, "-", true, tabRadio ) local button4 = guiCreateButton( 0.82, 0.91, 0.17, 0.08, "+", true, tabRadio ) local column1 = guiGridListAddColumn( radioList, "Radio stations", 0.85 ) local button1 = guiCreateButton( 0.01, 0.91, 0.48, 0.08, "Stop", true, tabRadio ) local button2 = guiCreateButton( 0.33, 0.92, 0.34, 0.08, "X", true, img ) local button6 = guiCreateButton( 0, 0.92, 0.33, 0.08, "<", true, img ) guiSetAlpha( button2, 0 ) guiSetAlpha( button6, 0 ) if ( column ) then --If the column has been created, fill it with players for id, station in ipairs(radio) do local row = guiGridListAddRow ( radioList ) guiGridListSetItemText ( radioList, row, column1, radio[id][2], false, false ) end end local phoneList = guiCreateGridList ( 0, 0, 1, 0.9, true, tabPhone ) local column2 = guiGridListAddColumn( phoneList, "Call service", 0.9 ) local button7 = guiCreateButton( 0, 0.91, 1, 0.08, "Call service", true, tabPhone ) if ( column2 ) then for id, number in ipairs(service) do local row = guiGridListAddRow ( phoneList ) guiGridListSetItemText ( phoneList, row, column2, service[id], false, false ) end end -- Select radio station addEventHandler("onClientGUIDoubleClick",radioList, function() local row,col = guiGridListGetSelectedItem( radioList ) if isElement( sound ) then destroyElement ( sound ) end sound = playSound( radio[row+1][1] ) setSoundVolume( sound, tonumber( guiGetText ( editBox ))/100 ) -- Turn off the car radio setRadioChannel ( 0 ) end) -- Window properties guiWindowSetMovable ( phoneGui, false ) guiWindowSetSizable ( phoneGui, false ) -- Set the alpha guiSetAlpha ( phoneGui, 1 ) guiSetVisible( phoneGui, false ) -- Show/hide the phone updateTimer = { } function togglePhone( source ) -- Show the phone if not guiGetVisible( phoneGui ) then showCursor ( true ) guiSetVisible( phoneGui, true ) -- Update player list if ( column ) then -- Save selected item local row,col = guiGridListGetSelectedItem( playerList ) guiGridListClear ( playerList ) for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( player ), false, false ) end -- Correct after refresh guiGridListSetSelectedItem( playerList, row, col ) end updateTimer[localPlayer] = setTimer( function() -- Update player list if ( column ) then -- Save selected item local row,col = guiGridListGetSelectedItem( playerList ) guiGridListClear ( playerList ) for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( player ), false, false ) end -- Correct after refresh guiGridListSetSelectedItem( playerList, row, col ) end end, 5000, 0 ) else showCursor ( false ) guiSetVisible( phoneGui, false ) if isTimer( updateTimer[localPlayer] ) then killTimer( updateTimer[localPlayer] ) end guiSetInputEnabled( false ) end end addCommandHandler( "phone", togglePhone, source ) -- On editor focus function disableInput( ) if source == smsTextBox then guiSetInputEnabled( true ) end end addEventHandler( "onClientGUIClick", smsTextBox, disableInput ) -- Stop the radio function stopRadio( ) if isElement( sound ) and source == button1 then setSoundVolume( sound, 0 ) destroyElement( sound ) end end addEventHandler( "onClientGUIClick", button1, stopRadio ) -- Close the gui function exitPhone( ) if source == button6 then showCursor ( false ) guiSetVisible( phoneGui, false ) if isTimer( updateTimer[localPlayer] ) then killTimer( updateTimer[localPlayer] ) end guiSetInputEnabled( false ) end end addEventHandler( "onClientGUIClick", button6, exitPhone ) -- Home button function phoneBack( ) if source == button2 then showCursor ( false ) guiSetVisible( phoneGui, false ) if isTimer( updateTimer[localPlayer] ) then killTimer( updateTimer[localPlayer] ) end guiSetInputEnabled( false ) end end addEventHandler( "onClientGUIClick", button2, phoneBack ) -- Call service function callService( ) if source == button7 then local row,col = guiGridListGetSelectedItem( phoneList ) local call = guiGridListGetItemText( phoneList, row, col ) triggerServerEvent ( "onSendCall", localPlayer, call ) end end addEventHandler( "onClientGUIClick", button7, callService ) -- Volume up function volUp( ) if source == button4 then local vol = math.floor(tonumber( guiGetText ( editBox ))) if vol < 91 then vol = vol+10 guiSetText( editBox, tostring( vol )) end setSoundVolume( sound, vol/100 ) end end addEventHandler( "onClientGUIClick", button4, volUp ) -- Volume down function volDown( ) if source == button5 then local vol = math.floor(tonumber( guiGetText ( editBox ))) if vol > 9 then vol = vol-10 guiSetText( editBox, tostring( vol )) end setSoundVolume( sound, vol/100 ) end end addEventHandler( "onClientGUIClick", button5, volDown ) -- Send SMS to player function sendSMS( ) if source == button3 then local row,col = guiGridListGetSelectedItem( playerList ) local rec = guiGridListGetItemText(playerList, row, col ) local recPlayer = getPlayerFromName( rec ) if isElement( recPlayer ) and getElementType( recPlayer ) == "player" then if recPlayer ~= localPlayer then triggerServerEvent ( "onSendSMS", localPlayer, getPlayerFromName( rec ), guiGetText( smsTextBox )) guiSetInputEnabled( false ) else exports["AC_message"]:outputTopBar( "You can't SMS yourself!", 255, 0, 0) end else exports["AC_message"]:outputTopBar( "The person you want to SMS is not available now ("..rec..")", 255, 0, 0) end end end addEventHandler( "onClientGUIClick", button3, sendSMS )
  10. Red-Pitbull

    zombie

    hi all guys i download zombie script from community https://community.multitheftauto.com/index.php?p=resources&s=details&id=347how i can change it zombie can spawn in area51 zombie cannot get out of area51 anyone have idea how i make
  11. fake https://community.multitheftauto.com/index.php?p=resources&s=details&id=8836 orginal https://community.multitheftauto.com/index.php?p=resources&s=details&id=8305 DONE
  12. hi all this is simple information panel it working great but when i start script it automatic open bind key not working GUIEditor = { tab = {}, tabpanel = {}, label = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(38, 81, 731, 495, "Information Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 126, 712, 359, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("SAM:RPG", GUIEditor.tabpanel[1]) GUIEditor.memo[1] = guiCreateMemo(1, 1, 711, 334, "Add your server information here", false, GUIEditor.tab[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.tab[2] = guiCreateTab("Rules", GUIEditor.tabpanel[1]) GUIEditor.memo[2] = guiCreateMemo(4, 4, 704, 331, "Add Rules here.", false, GUIEditor.tab[2]) guiMemoSetReadOnly(GUIEditor.memo[2], true) GUIEditor.tab[3] = guiCreateTab("Staff Member", GUIEditor.tabpanel[1]) GUIEditor.memo[3] = guiCreateMemo(2, 3, 710, 328, "Add your staff member here", false, GUIEditor.tab[3]) guiMemoSetReadOnly(GUIEditor.memo[3], true) GUIEditor.tab[4] = guiCreateTab("Event", GUIEditor.tabpanel[1]) GUIEditor.memo[4] = guiCreateMemo(1, 3, 711, 332, "Add your server Event here", false, GUIEditor.tab[4]) guiMemoSetReadOnly(GUIEditor.memo[4], true) GUIEditor.tab[5] = guiCreateTab("Commands", GUIEditor.tabpanel[1]) GUIEditor.memo[5] = guiCreateMemo(1, 2, 711, 333, "Add your server command here.", false, GUIEditor.tab[5]) guiMemoSetReadOnly(GUIEditor.memo[5], true) GUIEditor.tab[6] = guiCreateTab("Update", GUIEditor.tabpanel[1]) GUIEditor.memo[6] = guiCreateMemo(1, 2, 711, 333, "Add server update here", false, GUIEditor.tab[6]) guiMemoSetReadOnly(GUIEditor.memo[6], true) GUIEditor.tab[7] = guiCreateTab("Features", GUIEditor.tabpanel[1]) GUIEditor.memo[7] = guiCreateMemo(0, 2, 712, 333, "Add your server features here.", false, GUIEditor.tab[7]) guiMemoSetReadOnly(GUIEditor.memo[7], true) GUIEditor.label[1] = guiCreateLabel(164, 47, 409, 54, "Your Server Name Here", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-gothic") end ) function open() if (guiGetVisible (helpwindow) == false) then guiSetVisible(helpwindow, true) showCursor(true) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(helpwindow,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(helpwindow,x,y,false) centerWindow(helpwindow) elseif (guiGetVisible (helpwindow) == true) then guiSetVisible(helpwindow, false) showCursor(false) end end bindKey ("F1", "down", open)
×
×
  • Create New...