Jump to content

qaisjp

Retired Staff
  • Posts

    2,344
  • Joined

  • Days Won

    10

Everything posted by qaisjp

  1. "some functions get extra parameters" ??? I used ... for a variable amount of arguments.
  2. qaisjp

    Economy V1.0

    He's saying this: "I am thinking of creating an Economy system and Like, Instead of using the money up on the HUD, tI would somehow disable that or something and make The money down by the radar or something and this resource would include banks and stuff and will also add availablity to enable/disable interest. Is anyone interested?"
  3. omg include this code instead of your current definitions code for i,v in pairs(exports.dxGUI) do _G[i] = function(...) return v(...) end end that should work. (that automatically makes all exports of dxGUI native)
  4. yay turned out to be another shitty rp topic flamewar shit
  5. Oye! You should atleast say thank you to me for giving you the focking idea!
  6. Seriously who the fuck cares about RPG and RP anymore? MTA should just ban any server from the master list that has anything related to roleplay or RPG in the name. With exceptions, of course. I'm starting to think that MTA should have an "Official" tab with OFFICIAL, well developed servers (you have to apply for your ip to be in the official tab) I'm fed up of all these RPG and RP clones, most of them are just bullshait. The OP is absolutely right, and I think some serious moderating needs to be done in the sub-forum just to prevent flame wars. 90% of flame wars on this forum exist in the server subforum. Just, just fuck them all.
  7. qaisjp

    [REL] TCT

    After 2 years, you release this.
  8. aha its simple: its a race scripter noob who just likes to steal resources like the rp shit that goes on with vg and all those others
  9. 1. THANK GOD YOU ARE USING LIGHTER BLUE. YOU GET +1 FROM ME FOR THAT. 2. It seems the radio and checkbox buttons are a little too big. 3. I moved it for you https://wiki.multitheftauto.com/wiki/Resource:DxGUI 5. I would tell you that you should add exports, and then people can put this at the start of the script: g = exports.dxGUI g:dxCreateWindow 6. Also I would name it guiCreateWindow instead... to make it easier and more adaptable. Afterall, both cannot be used.. and if my method above was used, none of the original functions would be overwritten (it would be g:guiCreateWindow, not guiCreateWindow) 7. open source? make a repo http://code.google.com/hosting/createProject there and choose Subversion 8. you didnt realise i skipped 4. 9. now your smiling 10. here take a cookie
  10. qaisjp

    [Error]MySQL

    XAMPP is not required because he has bought hosting. The above site restricts access to databases based on the IP/domain name, like a firewall. Send us your mysql script, take out the password.
  11. it's not a static movement, the zombies will follow the player. so doing this is impossible.
  12. Please note: this tutorial is for those who are used to the normal scripting method In this tutorial we will be using tables, but not normal tables, metatables. Metatables are like normal tables, however once an action is applied to the table, a function is called from within the metatable. The command handlers will be added in this format: addCommandHandler(name, function, true) This is what you would do to add a command: function cmd.hi(player) outputChatBox( getPlayerName(player)..' says hi!' ) end This would make /hi do "User says hi!" Any code from this point should be in another file. (Mentioned link) local meta = {} -- This is for our system CMD = {} -- This is for adding commands -- Create a function within the table called "meta" -- It is called __newindex because it is called when a new index is created. See link above function meta.__newindex(t, i, v) local m = {} -- create another table function m.__call() -- This gets called when ATable() removeCommandHandler(i,v) -- remove command rawset(CMD,i,nil) -- remove from table end -- get fn function m.__tostring() return v end function m.__index() return v end setmetatable(m,m) -- set mta rawset(CMD, i, m) -- add the table directly addCommandHandler(i, v, true) -- add handler end setmetatable(CMD, meta) -- Now, to add a command, all you have to do is this: function CMD.hi() end to delete it CMD.hi() to get the function (to see if it exists) CMD.hi
  13. Looks nice, but what the hell is this? You explain what it contains, but you don't explain WHAT IT IS.
  14. qaisjp

    getGroundType

    Wow that looks nice, how do you handle it? Do you use onClientRender, because triggering server events on each user frame is extremely redundant.
  15. camera animation = moving the camera specifically in a certain way (cinematic camera?)
  16. +1 , but nice Job, I kinda like how the nitrous looks. Thank you for the feedback.
  17. Aha, sorry Callum. Forgot about that. (DanChris how many accounts do you have )
  18. Alternate client script: function applyFire() local fire = engineLoadDFF("fire.dff",1) engineReplaceModel(fire,2023) end addEventHandler("onClientResourceStart",resourceRoot,applyFire) function createExtinguisher(wep,_,_,_,_,_,hit) if wep ~= 42 then return end if getElementModel(hit) == 2023 then triggerServerEvent("fireExtinguished",localPlayer,hit) end end addEventHandler("onClientPlayerWeaponFire",localPlayer,createExtinguisher)
  19. put local picked = 0 at start of script. try to keep locals for better performance. use proper indentation everywhere
  20. qaisjp

    call resource

    also add this in the login resource meta:
  21. qaisjp

    call resource

    Show entire code in both resources.
  22. You misinterpreted my post, what I said, in baby language, was if he wanted to know how to CREATED DFF AND TXD then go to gtanet.com. If he wanted to know HOW to add to the server, he can ask here how to.
  23. To create car mods, you aren't allowed to post here, goto http://gtanet.com and ask there. To add car mods to the server, you may ask here.
×
×
  • Create New...