Jump to content

Ekko

Members
  • Posts

    37
  • Joined

  • Last visited

Everything posted by Ekko

  1. marker = {} marker[1] = createMarker(1217.0947265625, 357.6181640625, 19.413511276245, "corona", 3.5, 255, 255, 0, 255) function TelePort(Element, hitElement ) setElementInterior(Element, 1) setElementDimension (Element, 36 ) setTimer(setElementInterior, 1000, 1, Element, 1) setTimer(setElementInterior, 1000, 1, player, 1) setElementPosition(Element, 1099.146484375, -1300.3564453125, 79.0625, true) setElementFrozen(Element, true) setTimer(setElementFrozen, 1000, 1,Element, false) end addEventHandler("onMarkerHit",marker[1], function (player) if getElementType(player)=="player" then local vehicle = getPedOccupiedVehicle(player) if vehicle then local pTeam = getPlayerTeam(player) if pTeam and getTeamName(pTeam) == 'Gendarmerie Royale' then TelePort(vehicle) return end outputChatBox ('You are not in a team',player, 255, 0, 0 ) else outputChatBox ('You do not have a Vehicle!',player, 255, 0, 0 ) end end end) With this the car TP to the right place (interior: 1 /dimenson: 36 ) but the player tp to interior : 0 / dimensen : 36 pls help
  2. i want to tp inside interior (diffirente dimension/interior ) pls help me
  3. Didn't work bro the maker dont show up on the map !!
  4. I fixed the tp but the script doesn't work when i add those two lanes local pTeam = getPlayerTeam(player) if getTeamName(pTeam) == "police" then it work when i use only this pls help marker = createMarker(1220.44140625, 354.8740234375, 18.40625, "corona", 1.5, 255, 255, 0, 255) function teleport(player) if getElementType(player)=="player" then local vehicle=getPedOccupiedVehicle(player) if source == marker then fadeCamera(player, false) setTimer( fadeCamera, 1000, 1, player, true) setTimer(setElementInterior, 1000, 1, vehicle, 0) setTimer(setElementPosition, 1000, 1, vehicle, 1277.8544921875, 332.865234375, 19.40625, true) setElementFrozen(vehicle, true) setTimer(setElementFrozen, 1000, 1, vehicle, false) end end end addEventHandler("onMarkerHit", getRootElement(), teleport)
  5. Hello this script wont work it just create the marker and wont tp the vehicle pls fix it for me marker = createMarker(1217.0947265625, 357.6181640625, 19.413511276245, "corona", 3.5, 255, 255, 0, 255) function teleport(player) if getElementType(player)=="player" then local vehicle=getPedOccupiedVehicle(player) if source == marker then local pTeam = getPlayerTeam(thePlayer) if getTeamName(pTeam) == "Police" then setElementPosition(vehicle, 1270.8095703125, 333.9189453125, 19.40625, true) setElementFrozen(vehicle, true) setTimer(setElementFrozen, 1000, 1, vehicle, false) end end end addEventHandler("onClientMarkerHit", getRootElement(), teleport)
  6. Please help me i want to make this script for teams EX : team name police only can use it MarkerCAS = createMarker ( 1228.583984375, 289.650390625, 19.5546875, "arrow", 1.5, 255, 255, 255, 255 ) MarkerSAID = createMarker ( 1664.4736328125, 3561.16015625, 9994.0859375, "arrow", 1.5, 255, 255, 255, 255 ) setElementInterior(MarkerCAS, 0) setElementInterior(MarkerSAID, 101) setElementDimension (thePlayer, 101 ) function IntSTAFF(thePlayer) if source == MarkerCAS then fadeCamera(thePlayer, false) setTimer( fadeCamera, 1000, 1, thePlayer, true) setTimer(setElementInterior, 1000, 1, thePlayer, 101) setTimer(setElementPosition, 1000, 1, thePlayer, 1658.34375, 3561.16015625, 9994.0859375, true) setTimer(setPedRotation, 1000, 1, thePlayer, 0) end end addEventHandler("onMarkerHit", getRootElement(), IntSTAFF) function SaidSTAFF(thePlayer) if source == MarkerSAID then fadeCamera(thePlayer, false) setTimer( fadeCamera, 1000, 1, thePlayer, true) setTimer(setElementInterior, 1000, 1, thePlayer, 0) setTimer(setElementPosition, 1000, 1, thePlayer, 1225.5654296875, 313.3662109375, 19.7578125, true) setTimer(setPedRotation, 1000, 1, thePlayer, 0) end end addEventHandler("onMarkerHit", getRootElement(), SaidSTAFF)
  7. Hello i added interior map in my server i used this code for teleportation but players cant see each other inside the interior pls help local marker1 = createMarker(2219.662109375, -1155.7900390625, 1026.6960449219, "arrow", 2, 90,255,255,255) --mx, my, mz = teleport's position, SIZE = teleport's size for example 2 (not 255 xd), R,G,B,A = teleport's color for example 255,0,0,255 = red or 0,0,0,0 = invisible. function teleport1(player, matchingDimension) if player == localPlayer then setElementInterior (player, 10, -978.90002441406,1053,1344.3000488281 ) --x,y,z = coordinates where a player will be teleported setElementDimension (player, 40 ) --OPTIONAL setPedRotation (player, 90) --rz = Z rotation of the ped --OPTIONAL setElementFrozen(player, true) setTimer(setElementFrozen, 2000, 1, player, false) --TIME = for how long the ped should be frozen after being teleported 1000 = 1sec end end addEventHandler("onClientMarkerHit", marker1, teleport1)
  8. Ekko

    [HELP]INTERIORS

    Hello i want to add some of those interiors from her to my server but after i add them i dont know how i tp to them and make marker between dimension 0 and interior/dimension of those new interiors maps please help me
  9. i want to add delay (0.3s) between press aim_weapon key and crosshair shows setPlayerHudComponentVisible ( "crosshair", false ) -- removes the original crosshair function crosshair() local hitX,hitY,hitZ = getPedTargetEnd ( getLocalPlayer() ); local screenX1, screenY1 = getScreenFromWorldPosition ( hitX,hitY,hitZ ); dxDrawImage(screenX1-(32/2), screenY1-(32/2), 32, 32, "files/crosshair.png") end bindKey("aim_weapon", "both", function(key, keyState) if keyState == "down" then addEventHandler("onClientRender", root, crosshair) else removeEventHandler("onClientRender", root, crosshair) end end)
  10. Hey i'm having problem with the server , so i restart the server there is no FPS drops in the map when i enter an interior and exit it every time i go away from the town ( interiors new maps )then i come back fps drop from 75 to 12 for like 3s so i have to restart the server to fix it but whenever i use interior the same problem happen please help .
×
×
  • Create New...