-
Posts
1,491 -
Joined
-
Last visited
-
Days Won
3
Walid's Achievements
Loc (38/54)
69
Reputation
-
SharpSabre reacted to a post in a topic:
[TUT] Lua Strings
-
Naxxx1324 reacted to a post in a topic:
Doesn't work (GUI Problem)
-
ZJK reacted to a post in a topic:
[TUT] Lua Strings
-
ZJK reacted to a post in a topic:
[TUT] Lua Tables
-
Talha Tuğsat reacted to a post in a topic:
[QUESTION] Get the next and previous weapon
-
Atomix reacted to a post in a topic:
[TUT] Lua Strings
-
DexA reacted to a post in a topic:
[TUT] Lua Tables
-
DexA reacted to a post in a topic:
[TUT] Lua Operators
-
v36u reacted to a post in a topic:
[TUT] Lua Tables
-
LeonardoS'k reacted to a post in a topic:
[SHOW][COG] CJ custom clothes
-
function drawDxStuff(player) if player and isElement(player) then triggerClientEvent(player, "drawDxStuff", player) end end Then use this server side exports.resourceName:drawDxStuff(player) And in the dx stuff part just added (onClientRender) event
-
play[s] = playSound("Sirens/"..s..".wav",true)
-
thePlayer is not defined here function lol(player) if exports.SAWGacl:isPlayerInGroup(player,"Admin") then local team = getTeamFromName("Admins") if team then setPedSkin(player, 217) setPlayerTeam(player,team) setElementData(player,"class", "Admin") setElementHealth( player, 100 ) setPlayerArmor( player, 100 ) local r, g, b = getTeamColor (team) setPlayerNametagColor (player, r , g , b ) else exports.SAWGcommands:sendMessage("*Commands* You :Oing Moron You're not a sexy HQ Member to use this sexy command.",0,255,0,player) end end end addCommandHandler("A", lol)
-
local play = {} function pSound(key,keyState,s) if play[s] then stopSound(play[s]) else play[s] = playSound("Sirens/"..s..".wav") setSoundVolume(play[s], 0.3) end end bindKey("num_1", "down", pSound,"Sound_003") bindKey("n", "down", pSound,"Sound_012")
-
@pa3ck check this : CJ sutom clothes @Dzsozi all what you need: dxCreateTexture,dxCreateShader,dxSetShaderValue,engineApplyShaderToWorldTexture,engineRemoveShaderFromWorldTexture,destroyElement,addPedClothes,removePedClothes, tables (the most important thing).
-
You mean sth like this
-
Nah i don't recommend you to pass variabls one by one, sending the whole table is slightly better (less events triggered) use my code ( getBansTable())
-
Try this function booleanToString(boolean) return boolean and "true" or "false" end function stringToBoolean(string) return string == "true" and true or false end
-
addCommandHandler("x", function(plr) redirectPlayer(plr, "80.72.41.158", 21000) end )
-
Sorry i can't edit my post, anyways you can use sth like this : function getBansTable() local bans = getBans() local bansTable = {} for i=1, #bans do local admin = getBanAdmin(bans[i]) or "N/A" local ip = getBanIP(bans[i]) or "N/A" local nick = getBanNick(bans[i]) or "N/A" local serial = getBanSerial (bans[i]) or "N/A" local banTime = getBanTime (bans[i]) or "N/A" local reason = getBanReason (bans[i]) or "N/A" table.insert(bansTable,{admin,ip,nick,serial,banTime,reason}) end return bansTable end function setBans() local bans = getBansTable() if bans then triggerClientEvent(client,"setBans", client, bans) end end addEvent("outputBans", true) addEventHandler("outputBans", resourceRoot, setBans)
-
Working fine for me ??
-
Try this -- Server side function setBans() local bans = getBans() triggerClientEvent(client,"setBans", client, bans) end addEvent("outputBans", true) addEventHandler("outputBans", resourceRoot, setBans) -- Client side function setBans(bans) if bans then for k, v in ipairs(bans) do local row = guiGridListAddRow (stfgrd5) local serial = tostring(v.serial) or "N/A" local duration = tostring(v.time) or "N/A" local ip = tostring(getBanIP(v)) or "N/A" local nick = tostring(getBanNick(v)) or "N/A" local admin = tostring(getBanAdmin(v)) or "N/A" guiGridListSetItemText (stfgrd5, row, 1, serial, false, false) guiGridListSetItemText (stfgrd5, row, 2, duration, false, false) guiGridListSetItemText (stfgrd5, row, 3, ip, false, false) guiGridListSetItemText (stfgrd5, row, 4, name, true, false) guiGridListSetItemText (stfgrd5, row, 5, admin, true, false) end end end addEvent("setBans", true) addEventHandler("setBans", root, setBans) function outputBans() if (source == stfgrd5) then triggerServerEvent("outputBans", resourceRoot) end end addEventHandler("onClientGUIClick", root, outputBans)
-
Can I add a custom object without replacing an object?
Walid replied to szekelymilan's topic in Scripting
Ofc if you want to replace world textures with engineApplyShaderToWaorldTexture you need to use it. -
Can I add a custom object without replacing an object?
Walid replied to szekelymilan's topic in Scripting
Read this : Shader
