Jump to content

IIYAMA

Moderators
  • Posts

    5,973
  • Joined

  • Last visited

  • Days Won

    191

Everything posted by IIYAMA

  1. I don't know why you return a boolean to table.sort, it is probably because I got another scripting style and I haven't used it that much. try this: table.sort( sortinfo, function(a,b) return a.checkpoint > b.checkpoint or ( a.checkpoint == (tonumber(distanceFromPlayerToCheckpoint(player, sortinfo[i].checkpoint)) or 0)) end ) updated.
  2. 1. I have seen dx and shader hud's and some hud changes that are added with the weapon txd's. But this is how you add txd files. https://wiki.multitheftauto.com/wiki/EngineImportTXD I don't really have modding experience. I have onces designed my own hud with dx, but that was a little bit laggy. 2.The editor hasn't been designed to do that. Maybe there is some unknow plugin, but I don't think so. Maybe you should check the modloader from Remi-x. https://community.multitheftauto.com/in ... ls&id=3016 3. You have first find out the resource that caused that. Nobody can give you that answer, because nobody can give you the right answers without the correct lines. I saw you installing lots of resouces, I hope you didn't give the unknow ones all admin.
  3. = distanceFromPlayerToCheckpoint(player, sortinfo[i].checkpoint ) or 0
  4. Het is misschien stil omdat kant en klare resources die goed met elkaar moeten samen werken niet voor de hand liggen.
  5. When you make it global and recreate those vehicles, you will overwrite the vehicles(user-data). baggage = createVehicle ( 485, 1713.62378, 1458.48633, 10.73280, 0, 0,-3 ) baggage = createVehicle ( 485, 1713.62378, 1458.48633, 10.73280, 0, 0,-3 ) -- overwrite the data.
  6. @Robbster That's not a problem, the problem you have to solve is "how to destroy them for every single player". and then we are going to talk about tables. Or other storage possibility's.
  7. thank you! Players/server = RAM (temporary) Players = accountdata Server = mysql and SQL Right?
  8. and if I want to store personal stuff, (player data). Is it recommended to use accountdata or MySOL?
  9. Is MySQL also for data that will be executed lots and lots times? or is it better to use a table and store it in to the ram?(like normal tables) MySQL is more hard-drive work isn't?
  10. Did you tried it with player's or vehicle's? btw tried a serverside object?
  11. Yes this will cancel the map, because the map is the source. It is your code. addEvent("onMapStarting",true) addEventHandler("onMapStarting",getRootElement(), function ( ) if getResourceInfo(source, "type") == "map" then cancelEvent() end end) "onMapStarting" has nothing to do with the chatbox, I only finished the code that you made.
  12. Because it is an error. addEvent("onMapStarting",true) addEventHandler("onMapStarting",getRootElement(), function ( mapInfo, mapOptions, gameOptions ) --the parameters values are in tables. if getResourceInfo(source, "type") == "map" then --* cancelEvent() end end) -- "onMapStarting" we are already talking about maps.* -- source is the map. Maybe you should check this: https://wiki.multitheftauto.com/index.ph ... ource:Race
  13. np. Mr.Pres[T]ege is the best.
  14. Ik zal als ik thuis ben ff voor je kijken. Spawnpoints maken met editor edf? Dan heb ik de generale spawnpoint syntrax nodig en die kan ik pas maken als ik een spawnpoint map regel voor me zie. Van die gamemode zeker? Dan moet je van 1 van de maps uit de .map een spawnpoint regel halen.
  15. local police1 = createPickup (2251.99, 2489.39, 10.99, 1, 25, 10000, 60) local police2 = createPickup (2295.36, 2461.00, 1082, 0, 100, 10000, 60) function MarkerHit( thePlayer ) if ( source == police1 or source == police2 ) then local model = getElementModel( thePlayer ) if model~= 29 or model~= 181 then cancelEvent() end end end addEventHandler ( "onPickupHit", root, MarkerHit ) I expect people to place my given "end", at the correct location. I probably confused people O_o
  16. Wasn't a mistake by samer. local model = getElementModel( thePlayer ) if model~= 29 or model~= 181 then end
  17. try this. As far I know addEventHandlers don't support tables. Just one single element. Or you should have to use root and check in the function if the element is true. function MarkerHit( thePlayer ) local model = getElementModel( thePlayer ) if model~= 29 or model~= 181 then cancelEvent() end end addEventHandler ( "onPickupHit", createPickup(2251.99, 2489.39, 10.99, 1, 25, 10000, 60), MarkerHit ) addEventHandler ( "onPickupHit", createPickup(2295.36, 2461.00, 1082, 0, 100, 10000, 60), MarkerHit ) or local pickups = {[createPickup(2251.99, 2489.39, 10.99, 1, 25, 10000, 60)]=true,[createPickup(2295.36, 2461.00, 1082, 0, 100, 10000, 60)]=true} addEventHandler ( "onPickupHit", root, function ( thePlayer ) if pickups[source] then local model = getElementModel( thePlayer ) if model~= 29 or model~= 181 then cancelEvent() end end end)
  18. voor tdm? die heeft dat geloof ik al.
  19. is it only you or all players in your server? and a restart? (can be the mods)
  20. Check out the meta settings from tactics, perhaps it is added to tactics.
  21. https://community.multitheftauto.com/in ... ls&id=3028 Maybe you installed this resource?
  22. Gewoon het goede key woord in type Nee ik gebruik weinig mods, ik gebruik wel speciale sync damage scripts, alleen dat zou je als goed is niet aan je fps moeten voelen.
  23. https://community.multitheftauto.com/in ... ls&id=1679
  24. Ik heb geen idee van race resources, het zou ook kunnen dat de servers die het hebben, de eigenaars het zelf hebben gescript. Nope geen signature nodig, maar aardig dat je het vraagt.
  25. Waarom download je niet mijn monsterhandeling https://community.multitheftauto.com/in ... ls&id=6177 of kom je is langs op mijn server, (waar ik op het moment niks aan doe) mtasa://85.159.113.61:22035
×
×
  • Create New...