Jump to content

yousseftawab

Members
  • Content Count

    13
  • Joined

  • Last visited

Community Reputation

0 Neutral

About yousseftawab

  • Rank
    Square

Details

  • Gang
    CIT
  1. I made spawn markers it's supposed that when you spawn a car it gets spawned with a certain rotation and with certain colors and if you spawn another car it still does the same functions but it destorys the previous car. My problem is: 1. it spawns the car with the 1st color only I need to make it with the 2 colors 2.it spawns cars from all markers not just this marker in the same rotation. example: I have four medic spawn markers they all spawn in the same rotation 3.When I edit the script to make each marker spawn in it's own rotation, when I spawn the previous car doesn't get destroyed.
  2. I want the player to warp to the other side of the wall on marker hit and it Only Works if he is out of a vehicle I Want it for Both in a vehicle and out of a vehicle local allowedGroups = { ["Armed Forces"]=true } afMarker8 = createMarker ( 135.19999694824, 1938.4000244141, 18.60000038147, "cylinder", 5, 255, 255, 255, 0 ) function afmaker8(hitElement) if ( allowedGroups [ getElementData ( hitElement, "gang" ) ] ) then setElementPosition( hitElement, 135.19999694824, 1952.6999511719, 19 ) end end addEventHandler("onMarkerHit", afMarker8, afmaker8)
  3. it says incorrect client type for this command EDIT: it's still not working and i tried everything
  4. Still Not Working the gui opens when I press take job it doesn't do anything
  5. Still not working I don't know what to do
  6. I want to restrict the job to Armed forces ACL but it doesn't work it what is wrong. it works fine with no restriction but with the restriction it wont work what is wrong? CLIENT SIDE local marker = createMarker( 94.800003051758, 1925.1999511719, 17, "Cylinder", 2, 40, 73, 0, 200) GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} windowjob = guiCreateWindow(531,232,301,397,"Armed Forces",false) guiSetVisible(windowjob, false) GUIEditor_Button[1] = guiCreateButton(22,352,108,35,"Take job",false,windowjob) GUIEditor_Label[1] = guiCreateLabel(193,-103,5,5,"",false,wi
  7. it Worked! you all rock thanks guys
  8. I set timer and it's still bugged look ---------server side-------- addEvent("warpEvent", true) function warp ( thePlayer, theCar ) warpPedIntoVehicle( thePlayer, theCar ) end addEventHandler("warpEvent", getRootElement(), warp) setTimer ( warpPedIntoVehicle, 2500, 1 ) --------client side---------- function Patriot() humvee = createVehicle ( 470, 208.60000610352, 1920.6999511719, 16.60000038147, 0, 0, 90 ) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) triggerServerEvent( "warpEvent", source, humvee ) end addEventHandler("onClient
  9. what is wrong? when i walk into the marker the gui pops up when I press patriot it spawns but it warps me over it not in it please help function Patriot() humvee = createVehicle ( 470, 208.60000610352, 1920.6999511719, 16.60000038147, 0, 0, 90 ) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) warpPedIntoVehicle ( source, humvee ) end addEventHandler("onClientGUIClick", GUIEditor_Button[1] , Patriot, false)
  10. I made a spawn marker but I want it to spawn only when someone from the Armed Forces Team steps in But it's not working what's wrong with it? --server sided local vehicleMarker = createMarker(208.60000610352, 1920.6999511719, 16.60000038147, 'cylinder', 2.0, 40, 73, 0, 200 ) function vehicleMarkerHit ( hitElement, matchingDimension ) if getPlayerTeam(source) == ("Armed Forces") then if getElementType ( hitElement ) == "player" and not isPedInVehicle (hitElement) then local vehicle = createVehicle ( 470, 208.60000610352, 1920.6999511719, 16.60000038147, 0, 0, 90 )
  11. please help I made a lot of jobs and everything is working well but when someone walks into the marker the gui appears to everyone not him only. I want the Gui to appear to him only I tried everything please help me. here is the code: local marker = createMarker( 94.800003051758, 1925.1999511719, 17, "Cylinder", 2, 40, 73, 0, 200) GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} windowjob = guiCreateWindow(531,232,301,397,"Armed Forces",false) guiSetVisible(windowjob, false) GUIEditor_Button[1] = guiCreateButton(22,352,108,35,"Take job",false,windowjob) GUIEditor_
  12. Please help me I have the same Problem when the player dies he gets kicked out of his team and I don't understand what to do?
×
×
  • Create New...