-
Posts
1,411 -
Joined
-
Last visited
-
Days Won
2
Everything posted by WASSIm.
-
just use..., better unpack
-
EDIT i get more more problems and is now slow then before, you can see statistics everything up Statistics: http://i.imgur.com/tvm5H5k.png 1) 2) 3)
-
hi guys i get problem i don't know it... please help ERROR: Client (WASSIm.) triggered serverside event onPlayerChat, but event is not marked as remotly triggerable function commandChats(cmd, ...) local msg = table.concat({...}, " ") triggerServerEvent("onPlayerChat", localPlayer, msg, cmd, true) end
-
hi guys, what OS template VPS is better for mta server. i have: RAM: 128 MB SWAP: 256 MB Disk Size: 10 GB
-
i think that should to be better and what do you want local stats = {73, 75, 71, 77, 78} local weapons = {[24] = 100, [26] = 100, [32] = 100, [31] = 150, [46] = 200} local pBlips = {} addEventHandler("onPlayerSpawn", root, function (source) takeAllWeapons(source) setPlayerMoney(source, 0) givePlayerMoney(source, 5000) for _, stat in ipairs(stats) do setPedStat(source, 73, 1000) end for weapon, ammo in pairs(weapons) do giveWeapon(source, weapon, ammo) end pBlips[source] = createBlipAttachedTo(source, 0, 2) end addEventHandler("onResourceStart", resourceRoot, function() for _, player in ipairs(getElementsByType("player")) do if not (isPlayerDead(player)) then pBlips[source] = createBlipAttachedTo(player, 0, 2) end end end) -- Blip system setTimer(function() for player, blip in ipairs(pBlips) do if (isElement(player)) and not (isPlayerDead(player)) then local playerTeam = getPlayerTeam(player) if (playerTeam) then local r, g, b = getTeamColor(playerTeam) setBlipColor(blip, r, g, b) else setBlipColor(blip, 255, 255, 255) end else destroyElement(blip) pBlips[player] = nil end end end, 5000, 0)
-
addCommandHandler "onClientRender" getElementPosition dxDrawLine3D
-
you can use this function --By MJNONFIK function getServerIp() callRemote("http://www.nub.hj.cx/getServerIp.php", function(value) if (value ~= "ERROR") then return value end end) return false end
-
that not what i want exactly, i want funtion like this function getTimeDate (timestamp) -- code end outputChatBox(getTimeDate(1302552)) -- return string/show on chat: "2014/5/17 - 22:31:15"
-
its (year/mother/day - hour/minte/secode) to timestamp
-
function setWeaponStat( ) for _, skill in ipairs({"poor", "std", "pro"}) do setWeaponProperty(24, skill, "damage", 100) end end addEventHandler( "onResourceStart", resourceRoot, setWeaponStat )
-
hi guys i have question, how get (year/mother/day - hour/minte/secode) from timestamp ?
-
HOW ?
-
[TN] Tunisian Theft Auto | الأول خادم التونسي
WASSIm. replied to WASSIm.'s topic in Maghrebi Arabic / Darija / الدارجة
old topic nice BUMP -
replace all them to this addEventHandler("onVehicleExplode", resourceRoot, function () setTimer(respawnVehicle, 5000, 1, source) end)
-
local Hydra = createVehicle(520, 951.8,2132.1,20.6,0,0,283.75) addEventHandler("onVehicleExplode", Hydra, function () setTimer(respawnVehicle, 5000, 1, source) end)
-
elseif ( state == "left" ) and ( source == gridlist ) then local id = tonumber(guiGridListGetItemText(gridlist, guiGridListGetSelectedItem(gridlist), 2)) if id then previewVehicle = createVehicle( id, 1982.9794921875, 2044.2698974609 ,10.8203125) setCameraMatrix( 1971.8072509766, 2031.4422607422, 28.789499282837, 1972.1690673828, 2031.8653564453, 27.958776473999) end
-
i have other problem, its returned like empty table exports["ZA-database"]:dbQueryZA("SELECT * FROM groupMembers WHERE 'group' = '"..groupName.."' ORDER BY rank DESC")
-
EDIT solved thank you very much
-
hi guys i have problem, 3 tables don't created and only groups table created, please help exports["database"]:dbExecZA("CREATE TABLE IF NOT EXISTS groups (ID INTEGER PRIMARY KEY NOT NULL, name TEXT, founder TEXT, info TEXT, bank INT, colour INT, created TEXT)") exports["database"]:dbExecZA("CREATE TABLE IF NOT EXISTS groupMembers (ID INTEGER PRIMARY KEY, group TEXT, name TEXT, account TEXT, rank INT, WL INT, lastOn TEXT, joinedOn TEXT)") exports["database"]:dbExecZA("CREATE TABLE IF NOT EXISTS groupRanks (ID INTEGER PRIMARY KEY, group TEXT, name TEXT, premisson TEXT)") exports["database"]:dbExecZA("CREATE TABLE IF NOT EXISTS groupLogs (ID INTEGER PRIMARY KEY, group TEXT, member TEXT, message TEXT, date TEXT)") Logs: [2014-05-11 16:58:43] Starting group [2014-05-11 16:58:43] WARNING: database\server.lua:16: dbPoll failed; no such table: groupMembers [2014-05-11 16:58:43] WARNING: database\server.lua:16: dbPoll failed; no such table: groupRanks [2014-05-11 16:58:43] ERROR: group\utli.lua:23: bad argument #1 to 'pairs' (table expected, got boolean) [2014-05-11 16:58:43] group restarted successfully [2014-05-11 16:58:43] WARNING: @database\server.lua:45: dbExec failed; (1) near "group": syntax error [2014-05-11 16:58:43] WARNING: @database\server.lua:45: dbExec failed; (1) near "group": syntax error [2014-05-11 16:58:43] WARNING: @database\server.lua:45: dbExec failed; (1) near "group": syntax error
-
i want event start on ped or vehicle spawned like onPlayerSpawn
-
tell me what your resolution !