Jump to content

Bishop_G

Members
  • Posts

    11
  • Joined

  • Last visited

Recent Profile Visitors

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

Bishop_G's Achievements

Square

Square (6/54)

0

Reputation

  1. createPed createColCircle setElementRotation --setPedRotation is deprecated. setPedWalkingStyle setPedControlState --Use walk and forwards as control names.(give true as value) isElementWithinColShape setPedControlState --ped is in circle col and this value will be false (stop ped) outputChatBox --If you want a message visible to everyone, trigger it from the server side. addCommandHandler --create command event
  2. No. Players are teleported to the mission from the gui panel. But I want there to be only one player in the mission. That's why I gave an element data to the gui button. But I want to set this element data to false when the mission is finished from the server side. I don't know how to do this. For example, there is onPlayerWasted on the server side. When the player dies, the mission is canceled. In other words, when the player dies, the button on the gui panel must now be active. I will set the gui button element to false. But I don't know how to do this in the onPlayerWasted event on the server side.
  3. Hi Community, I created a panel for players to enter missions.There are names of the missions in the gridlists. But I do not want two players to enter the same mission.To prevent this, I gave data to the button to select the mission, and even if a second player clicks on that button, second player cannot enter the mission. The mission is on the server side and I want to give false data to the gui button when the mission is completed. How can I do this? How can I give false data to the gui button from the server side? can you help me ? function GoMission() if ( source == spawnButton ) then if getElementData(spawnButton,"paparazziFull") then return end --Other player cannot enter the mission local name = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if name == "Kill The Paparazzi" then setElementData(spawnButton,"paparazziFull",true) ----- There is someone in mission triggerServerEvent("PaparazziStart",localPlayer,localPlayer) guiSetVisible(GUIEditor.window[1], false) showCursor(false) playSoundFrontEnd ( 6) elseif name == "Andre Must Die" then triggerServerEvent("andreStart",localPlayer,localPlayer) guiSetVisible(GUIEditor.window[1], false) showCursor(false) playSoundFrontEnd ( 6) elseif name == "Cleaning The Hood" then triggerServerEvent("DrugDealerStart",localPlayer,localPlayer) guiSetVisible(GUIEditor.window[1], false) showCursor(false) playSoundFrontEnd ( 6) elseif name == "Rifas Die In Vinewood" then triggerServerEvent("rifaStart",localPlayer,localPlayer) guiSetVisible(GUIEditor.window[1], false) showCursor(false) playSoundFrontEnd ( 6) end end end addEventHandler("onClientGUIClick",spawnButton,GoMission)
  4. Bishop_G

    Onplayerjump

    setAnalogControlState - Multi Theft Auto: Wiki Control names - Multi Theft Auto: Wiki It would be more helpful if you share here how you made it jump once.
  5. Bishop_G

    Onplayerjump

    setTimer(function() --YOUR CODES HERE-- end, 30000, 0) This function runs whatever you want every 30 seconds.
  6. hello Community, I want to make the marker like in GTA:SA. As you know, the marker rotates around its own axis in GTA:SA. setElementRotation does not work for the marker. Which function can I use to rotate the marker from left to right? I can use onClientRender as an event. But I don't know which function to use. Can you help?
  7. I'm working on creating a mission. In the mission, I will take a photo of a dead ped. But I don't know which event to use for the camera. onPlayerWeaponFire does not work for the camera. Does anyone know which event to use?
  8. function playZombieSounds() local ped = getElementsByType("ped") for theKey,peds in ipairs(ped) do if ped and isElement(peds) and isElementStreamedIn(peds) then if getElementData(peds,"deadman") or getElementData(peds,"Muerto") return end local Zx,Zy,Zz = getElementPosition(peds) zedSound = playSound3D(zombiesounds[math.random(1,#zombiesounds)], Zx, Zy, Zz, false) setSoundMaxDistance(zedSound,5) end end end setTimer(playZombieSounds,6000,0)
  9. I tried KANKA but it didn't work. DiSaMe is right. These functions don't work on objects that are not set with the map editor. I will do it thanks
  10. use setPedVoice function.
  11. setTimer(function() local pVeh = getPedOccupiedVehicle(localPlayer) -- Get the players vehicle for i,v in pairs(getElementsByType("object")) do if (isElement(v)) and (getElementType(v)=="object") and (getElementModel(v)==1226) then if(pVeh) then setElementCollidableWith(pVeh,v, false) setElementCollidableWith(v,pVeh, false) end end end end, 500, 0) Hello! These simple codes only work on an object I put in the Map Editor. But I want it to be valid for all street lamps on the San Andreas map. I want to prevent the car from hitting the street lamps. Can you help a little?
×
×
  • Create New...