Jump to content

John Smith

Members
  • Posts

    656
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by John Smith

  1. hi, why is this happening? this is my part of code function onStop() fileDelete("ch/ch.reg"); fileDelete("ch/ch.sys"); local file1,file2 = fileCreate("ch/ch.reg"),fileCreate("ch/ch.sys"); local tab1,tab2 = toJSON(reg),toJSON(sys); fileWrite(file1,tab1): fileWrite(file2,tab2): fileClose(file1); fileClose(file2); end; addEventHandler("onResourceStop",resourceRoot,onStop); first file is properly written data to and closed but the other file is running into issues and everything in that function is defined so what does this error mean? how do i fix it?
  2. Use setAccountData its easier than learning sql
  3. use SQL database and some simple math.... Why would you need sql to make a level system?
  4. setWaterLevel(0) or resetWaterLevel()
  5. Basically this script is useless and it will confuse new users
  6. Nice job! Looking forward to official release
  7. Death most likely. Seems that way. It was a good project while it lasted. brace yourselves, MTA SA will still be alive in next 10 years posts are coming
  8. Then go back to your cloned server and don't come here.
  9. not sure but i think you can get fire rate by property anim_loop_start and anim_loop_stop arent reach and range the same thing?
  10. Well its up to the people how they and which resources they use Community can help people in coding and there are also resources which are useful I must say thanks to few resources on there i understood and learned new ways of editing,making: tables, functions databases,many things
  11. Downloading scripts is easy There are 2000 servers with downloaded scripts from community There it makes a server with community scripts: stupid,unpopular,not unique,lame and so on While using your own scripts is more unique,better,better reputation giving,etc
  12. checkBox function is never being triggered in the code you provided Also as walid said you should use localPlayer in damage event function
  13. Ohhhh i made such an embarrassing mistake.. Thanks
  14. hiii i just made perfect code for creating a marker and it doesnt create my perfect marker local tuningMarkers = { [1] = {488,-1743,12,"marker",1,255,0,0,255,12} -- garage 12;last argument } function onThisResStart() -- markers for i = 1,#tuningMarkers do local x,y,z,theType,size,r,g,b,a,garageID = unpack(tuningMarkers[i]) -- all variables carry correct data marker = createMarker(x,y,z,theType,size,r,g,b,a) outputDebugString(tostring(marker)) -- returns false setElementData(marker,"garageID",garageID) -- returns marker doesn't exist end end addEventHandler("onResourceStart",resourceRoot,onThisResStart) help would be appreciated
  15. That is default nametag system
  16. tablicapremii = { ["Roadtrain"] = true, ["Tanker"] = true, ["Linerunner"] = true, } czypremiakon = getVehicleName(czypremia) if tablicapremii[czypremiakon] then givePlayerMoney(client, 10000)
  17. if tablicapremii[czypremiakon] then Edit:_ not sure about above thing Try looping through table and compare value with czy thing like for i,value in pairs(tablicapremii) do if value == czypremiakon then -- your code of money here
  18. If you've 'developed' a functional GTA V Radar with blips and radar areas, then you shouldn't have problems to use such an easy function like this one is.
  19. Then write somewhere that this is for a limited time or something since in your topic it basically looks like if you're giving away servers for free permanently
  20. Soo why are you monthly spending money to give people servers for free? Maybe you're a good guy? Sorry but it looks like to me that you only want to steal people's resources
×
×
  • Create New...