Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 15/05/19 in Posts

  1. Well, a simple script that show on the screen a grenade indicator, i made it 6 years ago and i no longer uses it so i decided to share it. Download: https://community.multitheftauto.com/?p=resources&s=details&id=16021
    1 point
  2. BindKey é mais leve do que trigger. Mas dependendo do script dele, as vezes é mais necessário manter client-side, e então o trigger seria a única opção.
    1 point
  3. Porque você criou outro tópico sendo que era o mesmo assunto? --- Não é necessário usar bindKey, basta usar um trigger quando o veículo é criado desta forma: Server-side: function verifyCreateVeh (veh) createVehicle (402, 1517.172, -690.4, 94.75, 0, 0, 100) end addEvent ("onRequestCreateVeh", true) addEventHandler ("onRequestCreateVeh", getRootElement(), verifyCreateVeh) Client-side: local g1 = createMarker (1517.796, -694.59, 92.00, "cylinder", 3.0, 184,0,0, 150) addEventHandler ("onClientKey", root, function (btn, press) if isElementWithinMarker (localPlayer, g1) and press then if btn == "e" then triggerServerEvent ("onRequestCreateVeh", localPlayer) end end end)
    1 point
  4. شكرا لكم تم حل المشكله :] وعرفت المشكله هي انا مسوي فاكشن function showWin() exports.dgs:dgsSetVisible( GridListFort, true ) end وضايفه في البوتين , وكمان حاط نفسه exports.dgs:dgsSetVisible( GridListFort, false ) خخخ منوبني
    1 point
  5. Bem confuso oq vc tentou fazer... tente isso: local g1 = createMarker (1517.796, -694.59, 92.00, "cylinder", 3.0, 184,0,0, 150) function buffalo () bindKey (source, "e", "down", criaVeh) end addEventHandler ("onPlayerLogin", root, buffalo) function criaVeh (keyPresser, key, keyState) if isElementWithinMarker (keyPresser, g1) then createVehicle (551, 1517.66, -689.7, 94.75) end end Edit: Não precisava criar outro tópico, pois este assunto é o mesmo que o outro.
    1 point
  6. addEventHandler('onClientGUIDoubleClick',root, function() if source == g12 then local aSelect_ = guiGridListGetSelectedItem ( g12 ) if ( aSelect_ == -1 ) then return outputChatBox('يجب ان تختار الجو المُحدد') end local Data = guiGridListGetItemData( g12, guiGridListGetSelectedItem ( g12 ), 1 ) setWeather(Data) guiSetVisible(w12, false) showCursor(false) end end )
    1 point
  7. local aSelect_ = guiGridListGetSelectedItem ( yourGrid ) if ( aSelect_ == -1 ) then return end
    1 point
  8. @PlaKS você pode fazer esse código no server-side tbm, usando bindKey
    1 point
  9. Só usar um triggerServerEvent na hora de criar o veículo.
    1 point
  10. Veículos criados client-side servem somente para visualização. Não são utilizáveis pelos jogadores.
    1 point
×
×
  • Create New...