Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. It's an issue with the database. Make sure the database is successfully connecting. If it's not, just change CONNECTION_TYPE value in NGSQL/meta.xml to sqlite.
  2. It's because the website is requesting styles and images from different URL's. You'll need to view the website HTML and request all the websites that the website you're trying to use is using. Example, if this was the page source: <!DOCTYPE html> <html lang='en'> <head> <title>My Sample Site</title> <link href='http://anotherwebsite.co/corestyels.css' type='text/css' rel='stylesheet' /> </head> <body> <img src='http://another_website_img.com/mainimg.png' /> </body> </html> You would need request access to 'http://anotherwebsite.co/ for the styles and http://another_website_img.com for the image.
  3. This is the part of the code that gives that error in NGLogin/server.lua local account = addAccount ( user, pass ) if ( account ) then if ( not logIn ( source, account, pass ) ) then return message ( source, "Logging in has failed." ) end exports['NGLogs']:outputActionLog ( getPlayerName ( source ).." has registered on the server" ) triggerLogin ( source, user, pass, true ) setElementData ( source, "Job", "UnEmployed" ) setElementData ( source, "NGPlayerFunctions:Playtime_Mins", 0 ) setElementData ( source, "Playtime", "0 Hours" ) setElementData ( source, "Gang", "None" ) setElementData ( source, "Gang Rank", "None" ) exports['NGSQL']:createAccount ( user ); exports['NGJobs']:addPlayerToJobDatabase ( source ) exports.NGPlayerFunctions:setTeam(source,"Unemployed") else message ( source, "Adding account failed.\nPlease report to an admin." ) This means that the addAccount function is returning false. So as raysmta said, you are using invalid permissions. Please use NG's default acl.xml or give resource.nglogin access to function.addAccount.
  4. What do you mean by object patches?
  5. Does debugscript show any errors? I didn't check you're entire script, but from what I see there's no errors.
  6. You can use the giveWeapon function, and ammo argument to '99999999'
  7. The best way to find the harsh CPU and memory resources is to use the in-game performance browser resource. https://github.com/multitheftauto/mtasa ... min%5D/ipb
  8. element-data can return anything whether it's a string, boolean, vehicle, etc... The problem is the element-data is returning a vehicle when you want it to return a ped. Try using this: if ( type ( getElementData(source,"dlspec") ) == "userdata" and getElementType ( getElementData(source,"dlspec") ) == "vehicle" and getVehicleController ( getElementData(source,"dlspec") ) == target ) then
  9. Do you mean the isBrowserDomainBlocked function?
  10. Use engineImportTXD before engineReplaceModel.
  11. SQLite is better for performance, but MySQL is better for accessibility.
  12. You can use my NGLogs resource (you may need to edit it I'm not sure) and also use a modified version of the admin resource I made.
  13. Are you talking about triggerClientEvent?
  14. What exactly are you trying to do? I don't quite understand. Using and /> are basically the same thing, other than with the one you can have a value between the tags, but the just instantly closes the tag. Also, make sure you're saving the xml file (xmlSaveFile).
  15. One of the easier methods for doing this would be to use a render target. You'll need dxSetRenderTarget and dxDrawImage.
  16. xXMADEXx

    Houses

    All you literally have to look up is "GTA SA interiors" http://weedarr.wikidot.com/interior
  17. Well, I'm pretty sure that DayZ has hardcoded all of its messages and text, so unless you have the uncompiled version you can't.
  18. Use the export from scoreboard 'scoreboardAddColumn ' (eg. exports.scoreboard:scoreboardAddColumn (args....)) and then you can use setElementData to set the players experience and rank.
  19. This code looks fine, could your post the server code please?
  20. Can you please be a little more specific? I'm not quite sure what you're trying to do.
  21. This isn't a default feature for castillo's gang system. There may be a community resource for it, but I was unable to find one. You'll probably need to make it yourself, using the getPlayersByGang function exported by the gang_system resource.
  22. On the server side you need to create the command, then the command should tell the players (using triggerClientEvent) to add a render to a count-down render then create a timer for 3 seconds.
  23. Put this into your code: guiSetInputMode ( "no_binds_when_editing" );
×
×
  • Create New...