Jump to content

Mbtdaa

Members
  • Content Count

    262
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Mbtdaa

  • Rank
    Peon

Recent Profile Visitors

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

  1. Mbtdaa

    headlight

    end expected to close function at ling 75 near "else" function Buy() local veh = getPedOccupiedVehicle(localPlayer) local id = getElementModel(veh) setVehicleOverrideLights ( veh, 2 ) timer = setTimer( function() setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightState ( veh, 3, 1) setVehicleHeadLightColor(veh, 0, 0, 255) else setVehicleLightState ( veh, 3, 0) setVehicleLightState ( veh, 0, 0) setVehicleLightSt
  2. Mbtdaa

    headlight

    addEventHandler( "onClientGUIClick", root, function () if ( source == button5 ) then triggerServerEvent("PO", localPlayer) end end ) function buy() local veh = getPedOccupiedVehicle(localPlayer) local id = getElementModel(veh) setVehicleOverrideLights ( veh, 2 ) timer = setTimer( function() setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightState ( veh, 3, 1) setVehicleHeadLight
  3. Mbtdaa

    headlight

    defined ??? what is thes ?
  4. Mbtdaa

    headlight

    hi .. whats the problem with thats cod addEventHandler( "onClientGUIClick", root, function () if ( source == button5 ) then triggerServerEvent("PO", localPlayer) end end ) function Buy() local veh = getPedOccupiedVehicle(thePlayer) local id = getElementModel(veh) setVehicleOverrideLights ( veh, 2 ) timer = setTimer( function() setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightSt
  5. Mbtdaa

    Data

    sorry it's my bad ! i changed the data and it's worked ! but ther are smoll pro when i choose player and i see the text then i click in the grid the text stel same i want to set ,Total Huneter function() if (source == GridList) then local row, col = guiGridListGetSelectedItem(source) if (row ~= -1) then local player = getPlayerFromName(guiGridListGetItemData(source,row, 1)) if player then local data = getElementData(player, "race rank") or 0 guiSetText(hunter, "Total Hunters: "..data) el
  6. Mbtdaa

    Data

    that's the problem the data exist !
  7. Mbtdaa

    Data

    the data in gamemode race,
  8. Mbtdaa

    Data

    Thank you TAPL , But He does not count.! and the (else) doesn't work good .
  9. Mbtdaa

    Data

    none help ?
  10. Mbtdaa

    Data

    Bad argument @ 'guiGridListGetitemData'[expected number at argument 2,got none Bad argument @ 'getPlayerFromName'[expected number at argument 1,got boolne this is my Code function Players() guiGridListClear(GridList) for i, player in ipairs (getElementsByType ("player")) do local row = guiGridListAddRow(GridList) local Player1 = getPlayerName(player) local Player2 = string.gsub(Player1,"#%x%x%x%x%x%x","") guiGridListSetItemText(GridList,row,1,Player2,false,false) end end addEventHandler("onClientResourceStart",re
  11. Mbtdaa

    Data

    Hi,, I have label for get total Hunters It's not working i am sure from the data Can anyone help me solve the problem addEventHandler( "onClientGUIClick", resourceRoot, function() if ( source == GridList ) then if ( guiGridListGetSelectedItem ( source ) ~= -1 ) then local data = getElementData(source,"Hunters") or 0 local hunt = getPlayerFromName(guiGridListGetItemData(source),guiGridListGetSelectedItem(source),1) guiSetText(hunter,"Total Hunters:",data,hunt) end end end ) debugscript say getPlayerFromName == nil getElementD
  12. شكرا العفو انتظر احد يصلحلك سيرفر
×
×
  • Create New...