gaghaufgy
Members-
Posts
17 -
Joined
-
Last visited
Everything posted by gaghaufgy
-
Does anyone have the time and motivation to help me learn how to script? I know almost nothing about lua. I want someone to teach me how to script. If you have discord it's even better!
-
What do you think the problem is :\
-
.. i ll update you if it works Nope still doesn't work , the zero doesn't show up it's only 76(and the rest of the random numbers) This is the part of the script i edited local attempts = 0 local itemValue = 1 while true do attempts = attempts + 1 itemValue = "076" .. math.random(1000000, 9999999) local mysqlQ = mysql:query("SELECT `phonenumber` FROM `phones` WHERE `phonenumber` = '" .. itemValue .. "'") if mysql:num_rows(mysqlQ) == 0 then mysql:free_result(mysqlQ) break end mysql:free_result(mysqlQ) end exports.global:giveItem( client, 2, itemValue ) exports.anticheat:changeProtectedElementDataEx(client, "dbid") triggerClientEvent(client, "accounts:characters:new", client, 3, tonumber(id)) else triggerClientEvent(client, "accounts:characters:new", client, 2, 2) end end this is a photo of the table structure : https://imgur.com/a/YgQbObe
-
https://imgur.com/a/UOAOQBV I managed to change it but... that didn't seem to fix it... I also restarted the server and everything (created a new character so that it generates a whole new phone.)
-
This is what i did local attempts = 0 local itemValue = 1 while true do attempts = attempts + 1 itemValue = "076" .. math.random(1000000, 9999999) --I edited here. local mysqlQ = mysql:query("SELECT `phonenumber` FROM `phones` WHERE `phonenumber` = '" .. itemValue .. "'") if mysql:num_rows(mysqlQ) == 0 then mysql:free_result(mysqlQ) break end For some reason the number "0" doesn't appear the number looks like this : 76(and the rest of random numbers)
-
Thank you Patrick, i'm experimenting on allready made scripts with the purpose of learning. I wanna learn more about scripting and stuff , one day i ll make my own gamemode from zero!
-
Let the kids make servers I agree the script is leaked. If you really wanna start a MTASA server you need to build it from nothing. I see lots and lots of posts with the old Owlgaming gamemode , come on guys , i'm tired of seeing every server in my country with the same gamemode , build something original!
-
Ok so , i wanna generate a phone number with 10numbers the first 3 numbers i want them to be 076 , and the rest randomly generated , and the whole number to have 10characters , not more , not less! I've got this in my script local attempts = 0 local itemValue = 1 while true do attempts = attempts + 1 itemValue = math.random(311111, attempts < 20 and 899999 or 8999999) local mysqlQ = mysql:query("SELECT `phonenumber` FROM `phones` WHERE `phonenumber` = '" .. itemValue .. "'") if mysql:num_rows(mysqlQ) == 0 then mysql:free_result(mysqlQ) break end mysql:free_result(mysqlQ) end
-
Hello MTA comunity , can someone give me / teach me how do i make a loading screen ( i want the loading screen be like when resources are loading / downloading) Thanks!
-
Works on roleplay servers like with a car ? Like when you are in a car can you teleport you and the car too trough them?
-
Hello! When i want to add a new interior , i get this error in console! [2019-05-25 15:37:43] ERROR: interior-system\s_interior_admin.lua:885: call: failed to call 'global:isPlayerFullAdmin' [string "?"] [2019-05-25 15:37:49] ERROR: interior-system\s_interior_admin.lua:885: call: failed to call 'global:isPlayerFullAdmin' [string "?"] [2019-05-25 15:37:49] ERROR: interior-system\s_interior_admin.lua:926: exports: Call to non-running server resource (official-interiors) [string "?"] [2019-05-25 15:37:49] ERROR: interior-system\s_interior_admin.lua:927: attempt to index local 'interiors' (a nil value) [2019-05-25 15:37:58] ERROR: interior-system\s_interior_admin.lua:885: call: failed to call 'global:isPlayerFullAdmin' [string "?"] [2019-05-25 15:38:08] ERROR: interior-system\s_interior_admin.lua:885: call: failed to call 'global:isPlayerFullAdmin' [string "?"] [2019-05-25 15:38:08] ERROR: interior-system\s_interior_admin.lua:926: exports: Call to non-running server resource (official-interiors) [string "?"] [2019-05-25 15:38:08] ERROR: interior-system\s_interior_admin.lua:927: attempt to index local 'interiors' (a nil value) [2019-05-25 15:38:13] ERROR: interior-system\s_interior_admin.lua:885: call: failed to call 'global:isPlayerFullAdmin' [string "?"] [2019-05-25 15:38:13] ERROR: interior-system\s_interior_admin.lua:926: exports: Call to non-running server resource (official-interiors) [string "?"] [2019-05-25 15:38:13] ERROR: interior-system\s_interior_admin.lua:927: attempt to index local 'interiors' (a nil value) [2019-05-25 15:38:56] ERROR: logs\s_logs.lua:105: call: failed to call 'mysql:lazyQuery' [string "?"] Any ideeas how to fix it ?
-
Install NET.FRAMEWORK , DIRECT X C++ REDISTIBUTABLE it shoud work after you done all of that!
-
What are the specs of your PC ? Have you tried to reinstall MTA and GTA SAN ANDREEAS ?
-
First. Have you tried to reinstall MTA? Have you tried reinstall GTA SAN ANDREEAS? Try deleting MTA and GTA SAN ANDREEAS Here is link download MTA : https://mirror.multitheftauto.com/mtasa/main/mtasa-1.5.6.exe
- 5 replies
-
- battlegrounds
- mta
- (and 5 more)
-
Hello , i just got jailed on a MTA roleplay server for some reason. And the time was like 30 minutes. I was getting bored standing there to wait so i oppened CS:GO and i injected a cheat in CS:GO with DLL injector (MTA WAS IN TASKBAR) After 30 minutes i closed CS:GO and i oppened MTA again and it says i got banned for using DLL injector..... I doesn't used it to MTA , i used it to CSGO..... So....... help me.