Jump to content

Lordy

Members
  • Posts

    290
  • Joined

  • Last visited

Everything posted by Lordy

  1. You can use engine functions to replace textures and models, but handling is currently not supported. There was some trouble with it previously. (Something about bicycles iirc)
  2. The wanted[1] doesn't exist. (line 34) And you're trying to get wanted[1][1], that means, take the first index from the nil value. I'm not sure why tho.. Had something to do with rows and colums, but honestly, I don't know much about SQL(ite)
  3. Yes, that will come, but I don't have any documentation of it yet And that will come when that will come.
  4. v1.0.1 is out, fixed some bugs https://community.multitheftauto.com/index.php?p= ... ils&id=340 EDIT: v1.1.0 is out
  5. Resource menu v1.1 Fast way to start/stop/restart resources without needing admin panel. Please note that this resource is for 1.0 only. [attachment=0]menu.png[/attachment] https://community.multitheftauto.com/index.php?p= ... ils&id=340 Features: - Start resource - Stop resource - Restart resource - Last action (for example want to restart a resource many times) - Needs players to have at least function.banPlayer right. Show cursor (b), hold down r and right click on mouse. Uses YAML Don't forget to give this resource rights to start and stop resources
  6. Yet Another Menu Library v1.1 [attachment=0]menu.png[/attachment] https://community.multitheftauto.com/index.php?p= ... ils&id=339 A lib for creating various menus. Instructions: - Copy menu_c.lua and black.png from the resource to your resource and add lines <script src="menu_c.lua" type="client" /> <file src="black.png" type="client" /> to your meta.xml and you are free to use the functions Features: - Creating menus, dynamically managing rows, various functions for row hover, row click. Functions: menu:create(title) -- returns the menu menu:destroy() -- returns true menu:setPosition(x,y,relative) -- returns the menu menu:setSize(w,h,relative) -- returns the menu menu:show() -- returns the menu menu:hide() -- returns the menu menu:addRow(title) -- returns the row menu:setProperty(name,value) -- returns the menu menu:getProperty(name) -- returns the value menu:getPosition() -- returns absolute x and y row:setTitle(title) -- returns the row row:setProperty(propertyname,value) -- returns the row row:addOnClick(function) -- returns the row row:addOnEnter(function) -- returns the row row:addOnLeave(function) -- returns the row row:setColor(r,g,b) -- returns the row row:setHoverColor(r,g,b) -- returns the row row:setFont(fontname) -- returns the row row:setHoverFont(fontname) -- returns the row row:addSubMenu(submenutitle) returns sub menu table row:getTitle() -- returns row title row:getProperty(propertyname) -- returns the property value or false row:getOnClick() -- returns the table with functions which are triggered onClick row:getOnEnter() -- returns the table with functions which are triggered onEnter row:getOnLeave() -- returns the table with functions which are triggered onLeave row:getColor() -- returns a table which is {r,g,b} row:getHoverColor() -- returns a table which is {r,g,b} row:getFont()-- returns font name row:getHoverFont() -- returns font name row:getPosition(relative) -- returns x position and y position row:setAlign(horizontal,vertical) -- Note that it doesn't seem to work at the moment. Comments/bugs welcome
  7. Someone correct me if I'm wrong, but you can't get it atm
  8. I MTA there are peds too.. You probably haven't heard about the traffic resource, but it does exist.
  9. 50p I guess he means that all the singleplayer traffic and peds would work without any scripting needed..
  10. If you had clicked on the link in his post, you'd see the issue is still new, eg this still hasn't been implemented. attachElementToElement could work, but it doesn't because trailers aren't attached like that. Like when a train turns, the wagon needs move differently than just stuck on a defined offset.
  11. Maybe make a feature request on Mantis then To have control over vehicle's gears.
  12. Dreft, does debugscript say anything? I know when I started learning scripting, that example worked fine Thehookerkiller01, what's that post about anyway?
  13. Yes, but not too realistic You define the maximum speeds for each gear and use onClientRender & setElementVelocity to stop the vehicle going faster. Although it's possible to also calculate the acceleration it's not that easy. (I guess I couldn't do it). Also the vehicle sound effects would be useless. @some dev: Does SA just play the samples in an order or is speed of the vehicle or something like that involved too?
  14. Also if you don't need them to be synced, using tables to store data is better than element data. Something about bandwidth I think, since element data is synced with clients and server.
  15. Oh great, I didn't know that there's an 'Alternative map editor' Just thought the topic title is weird
  16. And if you're on Vista, it saves them with virtual store (also compatibility files I think). So in that case the path would be C:\Users\[username]\AppData\Local\VirtualStore\Program Files\[nightly installation folder]\server\mods\deathmatch\resources EDIT: Now read that the server is on your desktop. Do you use map editor on your server or the button Map Editor in-game? If former then it should be in your server's resources folder.
  17. You can just use string.gsub to replace any occurrences of | if you want and you don't need to have the index position. http://lua-users.org/wiki/StringLibraryTutorial addCommandHandler("test", function (player) local nick = getPlayerName(player) local newnick = string.gsub(nick,"|","") -- searches for | and replaces with nothing, eg removes them setPlayerName(player, newnick) end ) Took the function names and syntax from memory so they might have some faults. But just for you to see. EDIT: Also in your code, the last argument of string.find has to be boolean (true or false), you just have 'plain' (eg a nil value)
  18. Lordy

    Player menu

    Freeroam kinda does that doesn't it? Just with some funcs missing and no cost
  19. Well.. map file is with xml syntax, script is with lua syntax. Take your guess.
  20. Lordy

    Rotate on MTA

    setObjectRotation http://development.mtasa.com/index.php? ... ctRotation and moveObject http://development.mtasa.com/index.php?title=MoveObject can do it
  21. Robhol, there actually are good people in this world . Not that I would be one of them, but still, when was the last time anyone actually paid for a script on this forums?
  22. There actually is.. If you replace the dff/cols with an empty dff/col with engine funcs.. You'd have to know how to make them though and also have to keep in mind that lots of objects are used in several places
  23. Headshot! Boom. Oh, er that was the other game Other changes are not so much gameplay, rather internal it seems And now fix mta and release it NAO
  24. Lordy

    Gui help

    Well unless it's triggered triggerEvent(eventname,thePlayerToTrigger,parameters). Then setting local player as root in client side event handler should work too I thinks
  25. doesn't onVehicleStartEnter fire if there's a ped inside?
×
×
  • Create New...