-
Posts
461 -
Joined
-
Last visited
Everything posted by Feche1320
-
Como desativar sons de tiro de fundo do gta
Feche1320 replied to Gaimo's topic in Programação em Lua
setAmbientSoundEnabled( "general", false ) setAmbientSoundEnabled( "gunfire", false ) -
If I have a string with 'ilegal' characters, Mysql throws an error (1064) local name = getPlayerName(source) -- Let's say that the string returned by getPlayerName is Fe'che dbExec(db, "UPDATE stats SET anyvalue = '" ..name.. "'") I tried with gsub -> name:gsub("\'", "\''"), but no success
-
You are posting client side scripts, if it's a fuel system, the server-side scripts do the math to 'lower' fuel, so go check server side scripts for any errors (you can use /debugscript 3)
-
Awsome map
-
Depends on what you want to do
-
Hello, is there any way to allow the in-game web browser to load any page? for example, when I enter on Gmail, the mail images don't load. Thanks
-
Short long: proyect is dead by now
-
Where does currentRes come from? addNewTime(currentRes, serial, time, name, country)
-
local ResMode = getResourceInfo(res,"gamemode") It's gamemodeS, not gamemode.. local ResMode = getResourceInfo(res,"gamemodes")
-
If you want an un-optimized server, then go ahead I just tried to help you in another way, take it or leave it. Next week you will be asking why your server lags when loading reports, gl
-
That just says everything.
-
Do as the guy said, store just the references.. what Ciber said is wrong.. you could do something like INSERT INTO yourtablename VALUES ('reportedaccount', 'reportreason', 'pathtoscreenshot')
-
That's what I did lol
-
You will have to read files and use triggerClientLatentEvent, hard stuff for your knowledge.
-
local event = false addCommandHandler("turnOffMapInfo", function() if not event then addEventHandler("onClientRender", root, MapInfo) else removeEventHandler("onClientRender", root, MapInfo) end event = not event end ) bindKey("F3", "down", "turnOffMapInfo")
-
if ClanWar.General.MapRotationInfo[nC + 1] then smt = string.split(ClanWar.General.MapRotationInfo[nC + 1][1]) local i = interpolateBetween(0,0,0,#smt,0,0,progress, "Linear") local i = math.floor(i) dxDrawText("1."..(smt[1+i] or "")..(smt[2+i] or "")..(smt[3+i] or "")..(smt[4+i] or "")..(smt[5+i] or "")..(smt[6+i] or "")..(smt[7+i] or "")..(smt[8+i] or "")..(smt[9+i] or "")..(smt[10+i] or ""), x*0.025, y*0.5, x*0.2, y*0.525, tocolor(255,255,255,255), 0.5, "bankgothic", "left", "center") else dxDrawText("1. No Map Selected", x*0.025, y*0.5, x*0.2, y*0.525, tocolor(255,255,255,255), 0.5, "bankgothic", "left", "center") end That should work, btw if you have errors show us the full script
-
addCommandHandler("as", function(player, cmd, ...) local parts = table.concat({ ... }, " ") for i, v in ipairs(exports.mapmanager:getMapsCompatibleWithGamemode(getResourceFromName( "race" ))) do local name = getResourceInfo(v,"name") if name then if string.find(name:lower(), parts:lower(), 1, true) then -- Your code here end end end end )
-
Even if you manage to know if it's a resource you can't cancel onChatMessage event..
-
addCommandHandler("as", function(player,cmd,mapstring) for i,v in ipairs(exports.mapmanager:getMapsCompatibleWithGamemode(getResourceFromName( "race" ))) do local name = getResourceInfo(v,"name") if name then if string.find(mapstring:lower(), name:lower(), 1, true) then outputChatBox(name) end end end end)
-
HAHAHAHAHAHAHAHAHAH thanks god that 2014 didn't end yet. You sir, are in the 2014 #1 ranking of stupids persons.
-
Destroying the ped after spawn is a 'fast fix', why don't you look at the main problem instead? How does your script use the function createZombie?
-
Use fromJSON and toJSON, way easier than XML.
-
Maybe the free host is blocking some ports