Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/07/21 in all areas

  1. local var = { markers = {}, } local Usando = {} local itemobj = {} addEventHandler("onResourceStart", resourceRoot, function (res) if res == getThisResource() then for i, v in pairs(Config.MarkerBebedouro) do var.markers[i] = createMarker(v[1], v[2], v[3]- 0.9, "cylinder", 2.5, 0, 0, 0, 255) addCommandHandler("teste", function (thePlayer) if isElementWithinMarker(thePlayer, var.markers[i]) then setElementFrozen(thePlayer, true) toggleAllControls (thePlayer, false) setElementFrozen(thePlayer, true) setPedAnimation(thePlayer, "bd_fire", "wash_up", 1, true, true, true, true) MX_TakeItem(thePlayer, item, 1,slot) Usando[thePlayer] = true itemobj[thePlayer] = createObject(1950, x, y, z) setElementDimension(itemobj[thePlayer], dim) setElementInterior(itemobj[thePlayer], int) exports.bone_attach:attachElementToBone(itemobj[thePlayer], thePlayer, 11, -0.10, 0.06, 0.14, -2, 90,-15) setTimer(function() destroyElement(itemobj[thePlayer]) itemobj[thePlayer] = nil Usando[thePlayer] = nil setPedAnimation(thePlayer, "bd_fire", "wash_up", 1, false, false, false, false) setElementFrozen(thePlayer, false) MX_GiveItem(thePlayer, "agua", 1, slot) setElementFrozen(thePlayer, false) toggleAllControls (thePlayer, true ) end, 5000*quantidade, 1) end) end end end end) Brother, quando for mandar algum código. Pode mandar completo, por favor?
    1 point
  2. А не надо уже спасибо, уже сам исправил, спасибо огромное за то что просто помогли исправить предыдущие ошибки)
    1 point
  3. Should be: setElementData(localPlayer, "zaladowany", false) In onClientResourceStop event
    1 point
  4. Но метка пропадает? Возможно нужно выполнить совет в 3 пункте тогда (про row и itemText), либо же пересмотреть логику в своём коде.
    1 point
  5. As this is more aimed at server hosting, it's been moved into the Hosting Solutions section
    1 point
  6. local txd = {} local dff = {} local col = {} txd[1] = engineLoadTXD ( "mod1.txd" ) engineImportTXD ( txd[1], 3356 ) dff[1]= engineLoadDFF ( "mod1.dff" ) engineReplaceModel ( dff[1], 3356 ) col[1] = engineLoadCOL( "mod1.col" ) engineReplaceCOL( col[1], 3356 ) txd[2] = engineLoadTXD ( "mod2.txd" ) engineImportTXD ( txd[2], 3357 ) dff[2] = engineLoadDFF ( "mod2.dff" ) engineReplaceModel ( dff[2], 3357 ) col[2] = engineLoadCOL( "mod2.col" ) engineReplaceCOL( col[2], 3357 ) just an example Is not required to put local txd = {}, you can put txd1, txd2 etc.. but it's more easy to do like the example above.
    1 point
  7. DOWNLOAD: https://community.multitheftauto.com/?p=resources&s=details&id=18330 Speaker system, it lets players create their own boxes to stream music (internet radio, and sound links like .mp3), and other players will hear it. - Sizable list of preset internet radio stations (see pic) - Players can also use custom URL, to play their own music - Speakers will be placed near player, or if they are inside a vehicle, it will be attached to their vehicle - Song title, if present, will be displayed above the speaker - Players (with "Turn other box" button) can decide if they want to hear everyone's speakers, or only their own speakers. This is useful for not having to listen to other people's music taste, a lot of music mixing with eachother, limited bandwidth, and for security aware users. This option will be saved in client settings file. - Admins can see the name of player who placed an individual speaker (hold left alt) and delete a speaker with /delbox [ID]. The ID is displayed next to speaker owner name. Hope someone finds it useful!
    1 point
×
×
  • Create New...