Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Snoozy

  • Rank
  1. I'm wondering if I have a serverside table called for example Info[number] And I transfered it with getElementData and setElementData over to clientside and changed some of the info inside the table would it then only change on the clientside table or would it be changed also on the serverside table?
  2. Yea it can be used both serverside and clientside
  3. Use: setElementData(thePlayer,"Money",value) - for example getElementData(thePlayer,"Money")
  4. Certainly seems so cause it worked once I placed all of it serverside
  5. @Solidsnake14: The creation of the marker and blip is serverside so that wouldn't work. @Callum: They are both in the same resource just that creation is serverside
  6. So for some reason destroyElement() wont destroy the thing I asks it to. function MarkerHit ( hitPlayer, matchingDimension ) if source == getElementData(hitPlayer,"Marker") then outputChatBox("Hit the marker",hitPlayer) local Marker = getElementData(getLocalPlayer(),"Marker") destroyElement(Marker) local Blip = getElementData(getLocalPlayer(),"Blip") destroyElement (Blip) end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) Not either the Marker or the Blip gets destroyed. The data is s
  7. Oh well I just found the problem when I was trying to explain when it happen Looking at the code I was about to put into this post I noticed the problem, it was that I created the infoRoot element twice, and it was after the MaxBusiness was defined so it got erased again lol
  8. Where? Just tried 2 different places but it didn't work?
  9. Hey I've come across a problem with 'for' limit must be a number and have been unable to find a fix, anyhow heres the code and so on where it comes from infoRoot = getElementByID("infoRoot") maxbi = getElementData(infoRoot,"MaxBusiness") for idx=1,maxbi do -- 'for' limit must be a number appears here triggerServerEvent ( "GetBizName", getLocalPlayer(),idx) end It have worked before which is why it just seems strange local infoRoot = createElement("infoRoot", "infoRoot") setElementData(infoRoot, "MaxBusiness",maxbi) This is where the data is set
  10. Yea okay that works tho it seems that it also blocks the setRadioChannel which is needed to be used at start to set their channel to 0 else it will be 1
  11. Is it possible to make players unable to change to any radio channel in their vehicles?
  12. Well I've been trying but it doesn't seem to work the way I've been doing, the way I do is When a player joins it does: vehicle=getElementsByType("vehicle") for k1,v in ipairs(vehicle) do local Name = getElementData(source,"CharacterName") setElementData(v,tostring(Name),0) end Got no problems here at all, used tostring to make sure that it turns out to be a string. Then in another lua file I do following, this is where the problem appears vehicle=getElementsByType("vehicle") players=getElementsByType("player") for k,v in ipairs(players) do
  13. Is it possible to setElementData(vehicle,A variable,0) ? And then to get it again later. getElementData(vehicle, A variable)? What I'm trying to do is to set a variable for vehicle with a player name as the 2nd argument and therefore I need to use variables?
  14. Well is there a way to maybe set it so the screen for the player starts going from side to side?
  • Create New...