Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 13/02/21 in all areas

  1. You will have to script it trough like player buy ammo for uzi > save data; player buy mp5 > save uzi ammo data to account > delete smg ammo > load smg ammo data for mp5; and so on and so forth for all weapons. good luck
    1 point
  2. Please edit your thread and its title to have English content first, and PT/BR last, as this is an English section!
    1 point
  3. Olá. Seja bem-vindo(a) ao fórum. ? Compartilhe o trecho do código cujo está retornando erro para que nós possamos o ajudar. Todos os erros que aparecem no debugscript 3 são irrelevantes a partir do momento que nós não estamos vendo o código que está sendo executado.
    1 point
  4. Olá. Você pode usar a função aclGroupAddObject para adicionar algum jogador à ACL, assim que ele executar alguma ação, ou assim que algum evento seja disparado.
    1 point
  5. Server: function createveh() testveh = createVehicle(500, -1497.548828125, 2576.759765625, 56.061462402344, 0, 0, 357.63516235352) setVehicleDamageProof(testveh,true) bx, by, bz = getElementPosition(testveh) testmarker = createMarker(bx, by, bz, "cylinder", 10, 0, 255, 0, 255) testmarker2 = createMarker(bx, by, bz, "cylinder", 5.5, 255, 0, 0, 255) attachElements(testmarker, testveh) attachElements(testmarker2, testveh) setTimer(function() -- using a timer to wait the client to load the script triggerClientEvent(root, "getMarkers", root, testmarker, testmarker2) end, 1000,1) end addEventHandler("onResourceStart", resourceRoot, createveh) Client: local testmarker local testmarker2 function getMarkers(marker1, marker2) testmarker = marker1 testmarker2 = marker2 end addEvent("getMarkers",true) addEventHandler("getMarkers", root, getMarkers) function markerHit() if source == testmarker then outputChatBox("just hit marker 1") elseif source == testmarker2 then outputChatBox("just hit marker 2") end end addEventHandler("onClientMarkerHit", root, markerHit) *This is just an example, could be done better Note: This is not so secure way to do it tho. Remember to not fully trust what the client sends!
    1 point
×
×
  • Create New...