Jump to content

IIYAMA

Moderators
  • Posts

    6,089
  • Joined

  • Last visited

  • Days Won

    216

Everything posted by IIYAMA

  1. We hebben het hier over het gebruik van de resource door een admin(speler), niet of een resource admins rechten nodig heeft.
  2. Recommended to change it to setPedGrafity, so it will still be working in the future.
  3. Maybe study first the object creation syntax. object createObject ( int modelid, float x, float y, float z, [ float rx, float ry, float rz, bool isLowLOD = false ] ) set last argument to true. and https://wiki.multitheftauto.com/wiki/GetLowLODElement and https://wiki.multitheftauto.com/wiki/SetLowLODElement and https://wiki.multitheftauto.com/wiki/IsElementLowLOD
  4. https://wiki.multitheftauto.com/wiki/SetVehicleColor for i=1, #UtilityServiceCar do local vehicle= UtilityServiceCar[i] if isElement(vehicle) then setVehicleColor (vehicle, 100,100,100 ) -- r1, g1, b1, [int r2, int g2, int b2,] [int r3, int g3, int b3,] [int r4, int g4, int b4] else UtilityServiceCar[i]= nil end end
  5. for k, player in ipairs(getElementsByType("player")) do local circlearea = createColCircle(0, 0, 5) if circlearea then attachElements(circlearea, player) end bindKey(player, "i", "down", "checkdriver") end
  6. Did you ever tried to fix it by your self? Do even know how your own code works? Did you ever wrote a line by your self? and so "no" from who are those lines? Je probeert het niet eens, -__-" dan los je het zelf maar op.
  7. addEventHandler("onMarkerHit",createMarker(2121, 1402,10,"cylinder",2,0,255,0), function ( player ) if getElementType ( player ) == "player" then local bus = createVehicle ( 431, 2107, 1395, 10 ) warpPedIntoVehicle ( player, bus ) outputChatBox ( "you can earn money by driving to the markers",player )--< thx #Mr.Pres[T]ege (player) local myMarker = createMarker ( 2038.26, 1514.01, 9, "cylinder", 1.5, 255, 255, 0, 170,player ) local Blip = createBlip ( 2038.26, 1514.01, 13, 41, 0, 0, 0, 255, 0, 99999, player) end end,false) It must be working.... Never had trouble with that, I only don't know what number it chooses, but I think the server will go for default.
  8. It was server side.... and you didn't tell us what went wrong. We can't do anything with this information.
  9. addEventHandler("onMarkerHit",createMarker(2121, 1402,10,"cylinder",2,0,255,0), function ( player ) if getElementType ( player ) == "player" then local bus = createVehicle ( 431, 2107, 1395, 10 ) warpPedIntoVehicle ( player, bus ) outputChatBox ( "you can earn money by driving to the markers" ) local myMarker = createMarker ( 2038.26, 1514.01, 9, "cylinder", 1.5, 255, 255, 0, 170 ) createBlip ( 2038.26, 1514.01, 13, 41, 0, 0, 0, 255, 0, 99999, player) --name = getPlayerName ( source ) setElementVisibleTo ( myMarker, root, false ) setElementVisibleTo ( myMarker, player, true ) end end,false)
  10. for k,v in pairs(getElementsByType("player")) do bindKey(v, "o", "down", "pullover") end local circlearea = createColCircle ( 0, 0, 10 ) addCommandHandler("pullover", function ( su, command) local vehicle =getPedOccupiedVehicle ( su ) if vehicle and isElementWithinColShape ( vehicle, circlearea ) then setVehicleEngineState ( vehicle, false ) end end)
  11. btw you can remove this one: and getElementType ( vehicle ) == "vehicle" not required in the script, (sorry)
  12. Who is making the dutch language ?
  13. Skipper was probably confused with the event "onMarkerHit".
  14. yes possible.* https://wiki.multitheftauto.com/wiki/Se ... onProgress If you are good in scripting, you also can turn them backwards. Shooting isn't possible unless you are able to use custom weapons and create it at all client's.*
  15. and use getTickcount() to reduce data overclow. getTickCount()
  16. try this: for k,v in pairs(getElementsByType("player")) do bindKey(v, "o", "down", "pullover") end local circlearea = createColCircle ( 0, 0, 10 ) function ColShapeHit ( su, command) local vehicle =getPedOccupiedVehicle ( su ) if isElementWithinColShape ( vehicle, circlearea ) and getElementType ( vehicle ) == "vehicle" then setVehicleEngineState ( vehicle, false ) end end addCommandHandler("pullover", ColShapeHit)
  17. Because "su" is a player and not a vehicle.
  18. Pc would probably look better then this.
  19. When I am home, I will try to help you as far as I can.
  20. Btw there wasn't much wrong with your code. Maybe the triggerClientEvent did had a root argument, but that should not make it not working. triggerClientEvent("clientStartFiring", player, false) -- to triggerClientEvent(player,"clientStartFiring", player, false) sendTo: The event will be sent to all players that are children of the specified element. By default this is the root element, and hence the event is sent to all players. If you specify a single player it will just be sent to that player.
  21. Because you wanted to shoot while skydiving? "setControlState("fire", state)" = shooting..... or was it for opening the parachute? -- SERVER function skyD(player) local px,py,pz = getElementModel(player) setElementPosition(player, px,py,(pz + 300),false) giveWeapon ( player,46 ,1, true ) setControlState(player,"fire", true) setTimer(function() if isElement(player) then setControlState(player,"fire", false) end end, 500, 1) end addCommandHandler("letMeFly", skyD) --[[CLIENT function clientStartFiring(state) setControlState("fire", state) end addEvent("clientStartFiring", true) addEventHandler("clientStartFiring", getRootElement(), clientStartFiring) ]]
×
×
  • Create New...