Jump to content

Chronic

Members
  • Posts

    145
  • Joined

  • Last visited

Everything posted by Chronic

  1. Quotes are used only for strings. For this table you are trying to add, you never defined it, so put this at the top of your script. languages = {}
  2. Chronic

    Function

    getElementPosition setElementPosition
  3. Chronic

    onPlayerQuit

    It should work, be sure to have a second person with you on the server to test it out
  4. [quote name=..&G:..]Same error... DXgui.status[1] = guiCreateLabel(4, 85, 606, 145, "Numar Telefon: " .. getElementData(thePlayer, "cellnumber") .. "\nPermis de Conducere: " .. carlicense .. "\nPort Arma: " .. gunlicense .. "\nVehicule (" .. numcars .. "): " .. string.sub(carids, 1, string.len(carids)-2).. "\nProprietati (" .. numproperties .. "): " .. string.sub(properties, 1, string.len("properties")-2) .. "\nOre jucate pe caracter: " .. hoursplayed .. " ora/e\nLimbi Vorbite: " .. table.concat(languages, ", ") .. "\nNumar de Securitate: ".. finalstring .."", false, DXgui.fereastra[1]) Should be Anywhere you're writing a string it has to be inside quotes (" ")
  5. Should Be -- server function open(P) triggerClientEvent(P,"SeeGui",P) end addCommandHandler("gui",open) And the reason why you are getting that error is because string.len(properties) should be string.len("properties") since it's a string
  6. Chronic

    onPlayerQuit

    Oh nevermind I thought you were trying to say something else
  7. Chronic

    onPlayerQuit

    That wouldn't be a reason for a bad argument..
  8. Chronic

    onPlayerQuit

    addEventHandler("onPlayerQuit", root, function () local selectedTeam = getTeamName(getPlayerTeam(source)) if selectedTeam then outputChatBox(selectedTeam.." quits") end end )
  9. Ahh, thank you Made, that solved my problem!
  10. Ok, I'ved dumbed my script down to just function spawn ( ) spawnPlayer ( source, 0, 0, 5 ) end addEventHandler ( "onPlayerJoin", getRootElement(), spawn ) But it still doesn't work?
  11. Hmm, no idea why this isn't working. function spawn ( ) playerAccount = getPlayerAccount ( source ) skinid = getAccountData ( playerAccount, "skinid" ) if getAccountData ( playerAccount, "skinid" ) then spawnPlayer ( source, 0, 0, 5, 0, skinid ) elseif not getAccountData ( playerAccount, "skinid" ) then spawnPlayer ( source, 0, 0, 5 ) end end
  12. No errors in the debug, just does not work. function spawn ( thePlayer ) playerAccount = getPlayerAccount ( thePlayer ) skinid = getAccountData ( playerAccount, "skinid" ) if getAccountData ( playerAccount, "skinid" ) then spawnPlayer ( 0, 0, 5, 0, skinid ) elseif not getAccountData ( playerAccount, "skinid" ) then spawnPlayer ( 0, 0, 5 ) end end addEventHandler ( "onPlayerJoin", getRootElement(), spawn ) What I mean is, it doesn't spawn me when I join, just a black screen.
  13. Couldn't find it, oh well.
  14. Is there a function that allows the HUD and changes the camera? I really want this
  15. No I disabled all the resources except for the default ones. Before: http://i.imgur.com/OXmoItT.jpg After: http://i.imgur.com/xpDc6Ly.png As you can see the health, money disappear.
  16. Is there any way to use setCameraMatrix and still have the HUD show? Or is there any other function that sets the Player's camera and have the HUD show? I tried using showPlayerHudComponent but it did nothing. Client: setCameraMatrix ( 0, 0, 5 ) showPlayerHudComponent ( "all", true )
  17. Great idea Made! Although its just an aesthetic feature, I would love to add this to my server, and it can help the MTA Project!
  18. Chronic

    Buy Menu

    showGUI is never defined.
  19. Problem solved, the marker was too small
  20. server, obviously. And yes, it's my entire code
×
×
  • Create New...