Jump to content
Mr. Green Gaming

SDK

Greens
  • Posts

    951
  • Joined

  • Last visited

  • Days Won

    43

Posts posted by SDK

  1. @Cena https://github.com/MrGreenGaming/MTA-Resources/blob/master/resources/[gameplay]/gcshop/items/items_s.lua

    It hasn't changed in years and certainly does not run automatically, it happens when you press 1
    You can look in your MTA keybinds for gcflipv2 and change the key

  2. On 11/29/2018 at 7:04 PM, assntitties said:

    hmm jump in nts, i dont think it would be useful at all, maybe if u flip ur car upside down. So I would rather see 'flip' perk instead. Whenever u flip upside down u can once get ur vehicle "back on wheels" happens a lot with tractors and other crappy cars, i dont think it would do any harm and it wont give really any advantage against other players.

    I already made something like that (press 1 or /gcflipv2), it's similar to the change spawn command

    https://github.com/MrGreenGaming/MTA-Resources/blob/master/resources/[gameplay]/gcshop/items/items_s.lua#L10

     

  3. Well you got me intrigued so I added a quick command in the test resource. Everyone can test it out. You need to do it on every map.

    /lodrange 300

    Works really great on titten 2 @hulpje

     

    This is the code (yes only one line sue me im a vago)

    addCommandHandler('lodrange', function(p,dis) for k,v in ipairs(getElementsByType'object') do engineSetModelLODDistance(getElementModel(v), tonumber(dis)) end end)

    I don't think you need to create a new object @IwasawaengineSetModelLODDistance only increases the distance attribute of an object before the lod is loaded (or becomes invisible if no LOD), it doesn't make it a LOD object. Great job though, nice thinking.

  4. I have checked the log and indeed there was an error when updating your toptime

    [2017-07-20 11:45:32] WARNING: [race]\race_toptimes\tops.lua:261: dbExec failed; (1062) Duplicate entry '23024-race-ywa-omgwtfbbq' for key 'PRIMARY'

    Now the question is why, does anyone know if something changed with the map?

    Edit: well I attempted a fix, let me know if it still happens

×
×
  • Create New...