Baseplate
Members-
Posts
1,417 -
Joined
-
Last visited
Everything posted by Baseplate
-
Or, client addEventHandler("onClientGUIClick", guiRoot, function() triggerServerEvent("getMoney", localPlayer) if source == GUIEditor_Button[1] then setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end ) server: addEvent("getMoney", true) addEventHandler("getMoney", root, function (thePlayer) takePlayerMoney(thePlayer, 1) end
-
addEventHandler("onClientGUIClick", guiRoot, function() takePlayerMoney(1) if source == GUIEditor_Button[1] then setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") setTimer(setPedAnimation,5000,1,localPlayer) end end )
-
Well, you can use ModLoader which is totally easier to use.
-
Alright there is an Arabic subforums you can talk there. cause Google Translator fails
-
function onQuit (quitType, reason, responsibleElement) if (isGuestAccount (getPlayerAccount (source))) then -- do nothing else local account = getPlayerAccount (source) if (account) then setAccountData(account, "stat22", tostring(getPedStat(source, 69))) setAccountData(account, "stat23", tostring(getPedStat(source, 70))) setAccountData(account, "stat24", tostring(getPedStat(source, 71))) setAccountData(account, "stat25", tostring(getPedStat(source, 72))) setAccountData(account, "stat26", tostring(getPedStat(source, 73))) setAccountData(account, "stat27", tostring(getPedStat(source, 74))) setAccountData(account, "stat28", tostring(getPedStat(source, 75))) setAccountData(account, "stat29", tostring(getPedStat(source, 76))) setAccountData(account, "stat30", tostring(getPedStat(source, 77))) setAccountData(account, "stat31", tostring(getPedStat(source, 78))) setAccountData(account, "stat32", tostring(getPedStat(source, 79))) setAccountData(account, "stat0", tostring(getPedStat(source, 22))) setAccountData(account, "stat1", tostring(getPedStat(source, 23))) setAccountData(account, "stat2", tostring(getPedStat(source, 24))) end end end addEventHandler ("onPlayerQuit", getRootElement(), onQuit) function playerLogin (source) if isGuestAccount(getPlayerAccount(source)) then -- do nothing else local Staminastat = getAccountData (getPlayerAccount(source), "stat0") local Musculestat = getAccountData (getPlayerAccount(source), "stat1") local Healthstat = getAccountData (getPlayerAccount(source), "stat2") local Pistolskill = getAccountData (getPlayerAccount(source), "stat22") local SilencedPistolskill = getAccountData (getPlayerAccount(source), "stat23") local DesertEagleskill = getAccountData (getPlayerAccount(source), "stat24") local Shotgunskill = getAccountData (getPlayerAccount(source), "stat25") local SawnOffskill = getAccountData (getPlayerAccount(source), "stat26") local Spaz12skill = getAccountData (getPlayerAccount(source), "stat27") local Uziskill = getAccountData (getPlayerAccount(source), "stat28") local MP5skill = getAccountData (getPlayerAccount(source), "stat29") local AK47skill = getAccountData (getPlayerAccount(source), "stat30") local M4skill = getAccountData (getPlayerAccount(source), "stat31") local Sniperskill = getAccountData (getPlayerAccount(source), "stat32") setPedStat(source, 22, Staminastat) setPedStat(source, 23, Musculestat) setPedStat(source, 24, Healthstat) setPedStat(source, 69, Pistolskill) setPedStat(source, 70, SilencedPistolskill) setPedStat(source, 71, DesertEagleskill) setPedStat(source, 72, Shotgunskill) setPedStat(source, 73, SawnOffskill) setPedStat(source, 74, Spaz12skill) setPedStat(source, 75, Uziskill) setPedStat(source, 76, MP5skill) setPedStat(source, 77, AK47skill) setPedStat(source, 78, M4skill) setPedStat(source, 79, Sniperskill) end end end addEventHandler ("onPlayerLogin", getRootElement(), playerLogin) How do you get an acc data that isn't set yet?
-
Well, let's keep waiting as sora says then.
-
oh, you made this script? -- Bank rob donated to SAMG:RPG -- -- Made by Nabz0rkingz0r -- I believe SAMG:RPG was my server.
-
You made it wrong, should be this <meta> <script src="carristriction.lua" /> </meta>
-
CnR is similar to RPG mostly. CIT is CnR as far as I remember
-
setTimer( function() gPS69 = getPedStat(source, 69) if (gPS69 = 100) then guiProgressBarSetProgress(Progress[1], 10) end ,50 ,0 ) And so on, not sure if others have better ideas tho
-
guiProgressBarSetProgress(Progress[1], gPS69) -- Wrong Required Arguments theProgressbar: The progressbar you want to change the progress of progress: a float ranging from 0 - 100
-
No problemo, it just have all upgrades IDs, so all you have to do is find the one you need.
-
This one
-
triggerServerEvent ("stats", getLocalPlayer()) And guiProgressBarSetProgress is client-sided so your whole code is wrong
-
addEventHandler("onResourceStart",getResourceRootElement(), function () setWeaponProperty("mp5", "pro", "maximum_clip_ammo", 30) end) addEventHandler("onPlayerLogin",getRootElement(), function (thePlayer) accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then setWeaponProperty("mp5", "pro", "maximum_clip_ammo", 999999999) end end)
-
Client: function clientGUI() guiSetVisible(Window,true) showCursor(true) end addEvent("showGUI", true) addEventHandler("showGUI", root, showGUI) Server: function serverGUI(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent("showGUI", getRootElement()) end end addCommandHandler("Panel", serverGUI)
-
Sorry for using English cause I don't have an Arabic keyboard, maybe someone could explain. Show us your entire code.
-
https://community.multitheftauto.com/index.php?p= ... ls&id=5801 https://community.multitheftauto.com/index.php?p= ... ils&id=811 if that's what you want.
-
Lol? <script src="warpobat.lua"/> That's it.
-
function changePos( attacker, weapon, bodypart, loss ) if (weapon == 5) then setElementPosition(source, x, y, z) --change the x, y, z to your coordinates end end addEventHandler("onPlayerDamage", root, changePos) Untested.
-
We aren't looking for mod powers, but thanks for ur trust. we just want a Tunisian Subforums for us and our own mods.
-
Client: function clientGUI() guiSetVisible(Window,true) showCursor(true) end addEvent("showGUI", true) addEventHandler("showGUI", root, showGUI) Server: function serverGUI(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent("showGUI", getRootElement()) end addCommandHandler("Panel", serverGUI)
-
I even knew Will as a good guy before that little "fight". Anyways we're all humans and just all of us make mistakes.
-
I know, but mostly we want our own mods so they can manage our topics.
