Jump to content

IIYAMA

Moderators
  • Posts

    6,063
  • Joined

  • Last visited

  • Days Won

    208

Everything posted by IIYAMA

  1. Maybe take a close watch at the sample from wiki mta: https://wiki.multitheftauto.com/wiki/DxDrawText
  2. @Solidsnake14 O_o, lol
  3. I even get the feeling this isn't your code since you didn't try to debug it. You seriously wasted my time, I will never try to help you again.
  4. I didn't had time to fix. Never used pedClothes before. local gasMaskActivation = function (player) local texture,model = getPedClothes ( player, 15 ) if not (texture == "hockey" and model == "hockeymask") then addPedClothes ( player, "hockey", "hockeymask", 15 ) else removePedClothes ( player, 15 ) end end addEventHandler ("onPlayerLogin",root, function() bindKey (source,"h","up",gasMaskActivation) end) addEventHandler ("onPlayerLogout",root, function() if isKeyBound ( source,"h","up",gasMaskActivation ) then unbindKey (source,"h","up",gasMaskActivation) end end)
  5. It directx functions require onClientRender.
  6. Use a timer: https://wiki.multitheftauto.com/wiki/SetTimer drawtext only works for clientside: https://wiki.multitheftauto.com/wiki/TriggerClientEvent
  7. addEventHandler("onMarkerHit",createMarker( 1791.537, 656.511, 17.626, 'cylinder', 2.0, 255, 0, 0, 150) , function ( hitElement, matchingDimension ) if getElementType( hitElement ) == "vehicle" then setElementFrozen ( hitElement, not isElementFrozen ( hitElement ) ) end end)
  8. Why not? server: triggerClientEvent ( player, "cashUpdate", player, cash ) client: addEvent("cashUpdate",true) addEventHandler("cashUpdate",root, function (cash) end)
  9. no. use: https://wiki.multitheftauto.com/wiki/OnVehicleEnter setVehicleLocked ( 596, true ) a number isn't a vehicle.
  10. local myMarker = createMarker( 1791.537, 656.511, 17.626, 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler("onPlayerMarkerHit",root, function ( hitElement, matchingDimension ) -- define MarkerHit function for the handler if isPedInVehicle( hitElement ) then local playerVehicle = getPlayerOccupiedVehicle ( hitElement ) local currentFreezeStatus = isElementFrozen ( playerVehicle ) local newFreezeStatus = not currentFreezeStatus setElementFrozen ( playerVehicle, newFreezeStatus ) end end) Lol I didn't seen you also forgot the event.
  11. Wrong: You are using 3 times the event onPlayerLogin. The player of a onPlayerLogin is the source. You are using getLocalPlayer, that is for clientside. But this is serverside. Use removePedClothes instead of removePlayerClothes getPedSkin ( player) require a player or ped. etc.
  12. Where is your event? Your function? Btw: carid = getElementModel(vehicle) -- not a car id. -- and if (skinid==280 or skinid==281 or skinid==282 and carid==596 or carid==598 or carid==597) and isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "police" ) ) then
  13. That is just another way of doing, it isn't adding more objects. Well let me call it: faking the players
  14. local myMarker = createMarker( 1791.537, 656.511, 17.626, 'cylinder', 2.0, 255, 0, 0, 150) function MarkerHit( hitElement, matchingDimension ) -- define MarkerHit function for the handler local elementType = getElementType( hitElement ) -- get the hit element's type if elementType == "player" and isPedInVehicle( hitElement ) then local playerVehicle = getPlayerOccupiedVehicle ( hitElement ) local currentFreezeStatus = isElementFrozen ( playerVehicle ) local newFreezeStatus = not currentFreezeStatus setElementFrozen ( playerVehicle, newFreezeStatus ) end end
  15. You can't add new objects. You have to stick with replacing them, sorry.
  16. If he does, he is making it for you..... Requests are not allowed here. You should read wiki mta and make it your self. It is isn't a big deal.
  17. @MIKI785 Also a possibility.
  18. maybe you can use an object that also contains fire and set alpha to zero. (write in the editor 'torch') You probably have some certainty of always working fire. (fire's don't stay forever) For the show right?
  19. hmmmzzzz http://img62.imageshack.us/img62/1760/v5q.png I see fire,
  20. Cause? I am not going to test it, it is your code. It is your job to debug it, not mine. I can't help you if the only thing you say is "not working". A system like that require lots of brain power, if you want it working then you have to debug it.
  21. The first step is downloading, scripts,models etc. The second step a far as I know, elementdata, playerdata, anti cheat things etc. The second step got increased by the amount of synchronisation data. I don't know if that is true what I just did said, but it sounds very logistic to me. 1: Just reduce the amount of models/images/music. 2: try working with: https://wiki.multitheftauto.com/wiki/FetchRemote 3: or you have to wait for this: https://wiki.multitheftauto.com/wiki/DownloadFile
  22. https://wiki.multitheftauto.com/wiki/MoveObject You can attach a vehicle to an object and move the object to another point.
×
×
  • Create New...