Jump to content

pro-mos

Members
  • Posts

    84
  • Joined

  • Last visited

Everything posted by pro-mos

  1. function deletePlayerInvite(player) for i, k in pairs(invitations) do if k.player == player then k = nil return true end end end small code written on my phone
  2. My script downloads files on the player's pc as he play script/cache/water.fx script/cache/wrap.txd So when i try to use these files client side with -- egineLoadtxd -- and/or dxCreateShader('cache/water.fx') It doesn't work, with a warning like file not found.Do i have to include downloaded files to the meta.xml?
  3. Great idea tho, but I think no one will face a problem with big data, except crappy computers.
  4. Sorry I didn't make my self clear, what I meant is this event "onGamemodeMapStàrt" server or client? This is mapmanager event, and second question is the best way to load map objects is to do it on server or client side?
  5. There's two 'end' remove one
  6. pro-mos

    security

    If you mean hiding the password while you write it, There is no direct way of doing that.
  7. As the title says. The wiki doesn't tell. And what's the best way to handle the event (client or server)? To load maps and create objects.
  8. It's something like killcam, it just rewinds what you've done in your vehicle I'm storing the data (pos, velocity, rotation) in a table I'm using onClientRender, but it's too fast and if you use rewind over and over, the speed increases insanely for no obvious reason. Still haven't tried to use tick count with it.
  9. I have a table full of x and y's and z of positions. Lets say i want to move a car from point A to B using the positions table (many positions). If i used the event "onClientRender" to move the car, the car will move too fast. The other option is to use a timer of 50 ms to set the position of the car, but this makes the car move too slow and jumps a little. What else can i try?
  10. Thanks for the correction
  11. I dont think you can do this, you need to define the function first, then use it like function getIDFromEventName() ... ...... then addEvent ......
  12. https://wiki.multitheftauto.com/wiki/Se ... onsEnabled
  13. pro-mos

    Transfender

    https://wiki.multitheftauto.com/wiki/SetVehiclePaintjob https://wiki.multitheftauto.com/wiki/AddVehicleUpgrade
  14. pro-mos

    Transfender

    Garage with a marker, when marker hit, set camera to a garage interior and display the GUI.
  15. i dont think string.find is the function you wanna use, it returns the number where the string starts and ends example: string.find("i will say YES", "will") -- returns >> 3 6 http://www.lua.org/pil/20.1.html
  16. this is strange, i guess its caused because you passed source then oldNick then newNick to updatePlayer function, here: triggerClientEvent(source,"updatePlayerList",source,oldNick,newNick) try this: triggerClientEvent(source,"updatePlayerList",oldNick,newNick, source)
  17. whats the line number that has error, post the full error please
  18. function changePedStats(thePlayer, _) local stat = setPedStat(thePlayer, 75, 1000) if (stat) then outputChatBox("You have spawned Dual UZI's!", thePlayer) end end ---- addEvent("dualDualWield", true) addEventHandler("dualDualWield", root, function() changePedStats(source) giveWeapon( source, 28, 1, true ) end )
  19. yeah i did use tables, and thanks for the idea
  20. The question is: can i use onClientRender event to store player movements instead of a timer of 50 ms, or it will take much resources and lagg on weak PC's? anyway nevermind, apparently im writing to myself
  21. Sorry for the quality, had to downgrade the quality so the video uploads fast
  22. cant believe that i solved it! its actually working! i used element data instead of tables. now i can go backward and undo my moves ! Hell yeah !
  23. i want to get the player moves, and when he hits [ key, he goes backward, just like going back in time. this is what i have so far not working as expected tho UPDATE: deleted not working code
  24. pro-mos

    Solved

    is it? but it's an MTA function too, it will work.
  25. post the function that triggers remove_radar
×
×
  • Create New...