-
Posts
277 -
Joined
-
Last visited
Everything posted by DiGiTal
-
المود يمكن نشوف @omaralwadie
-
HI, i'm a scripter and Designer .I'm working for a project from a long time and soon it will be published . it's a MULTI game mode server ( RPG,RACE,FUN,DD,DM AND MORE) with modern functions for that i need a partner who can help me (need a ACTIVE partner , SERUIS, LOYAL ) contact me at: skype:ogg4r_fr discord: DigiTaL#4392 PM (if you don't have discord and skype) PS: -Don't hesite to say your experience -if i'm interested by your skills you can a" % "in the project .
-
<group name="Admin"> <acl name="Moderator" /> <acl name="SuperModerator" /> <acl name="Admin" /> <acl name="RPC" /> <object name="resource.admin" /> <object name="resource.webadmin" /> <object name="user.Ransom" /> <object name="resource.ScriptName" /> -------- مع هده يمكن الكيك و البان </group> انتقل إلى "اسل" ثم إضافة البرنامج النصي إلى الادمين @*RayaN-Alharbi.
-
Hello, I'm simple scripter lua mtasa and designer .Enjoy my first tutorial (any question reply it or suggestion, i'll do a list of tutorials ) Variables(type): *Global variables: means the variable will be avaible on hole of the script for example: Code: function test() name = 123 jake = "me" end function test() name = 123 jake = "me" end function test1() print(name)--- returns 123 print(jake)------returns me end the ----- it's a advert can't cause anything to the code print it's for to output a string or else. or (because as global variable it can be in the function or out.) Code: name = 123 jake = "me" functio test() ------your code end *Local variables: it will be avaible only on your function attached to. Code: function test() local name = 123 local jake = "me" end and if i do function test() local name = 123 local jake = "me" end function testt() print(jake) ----- return nil end If you saw Code: jake = "me" "me" called a string . *Key words and break do else elseif end false for if in local nil not repeat then return true or until while function *Function : The function is the way that describe your goal by a CODE . it likes Code: function NameOfYourFunction(arguments) -----YOUR CODE end The function end with "end" if you forgot it , your code wrong. *nil : it means nothing *boolean: it return true or false value *if : Is for to state "if" it ends with "end" as for function for ex: local var1=1 local var2=2 function name() if (var1+var2) == 3 then -----do somthing else -----do something else end end means if 2+1 = 3 then insert your code BUT if 2+1 ~= 3 then insert your code (xd) ~= means not equal == equal *operators: it's what your learned at school : (+,-,/,*,^) (I'll update it soon)
-
if(accounts) and (type(accounts == "table")) then return #accounts end return false end I think here wrong. Type accounts =table
-
Hi, BUG - the panel didn't open with the "b" bind and the /hedit ( gave rights(admin), set the name to hedit ...etc) the prevouis versions works fine but this last version ,it didn't work . Thanks
-
Why he should use onclient render ? As i see in the wiki its only for drawing things ? Thanks @Fist
-
and what about the server side script , can't secure?
-
@Vuzimir what about "Meta.xml is empty" ?
-
i didn't get it too . but if you want you can check (it's very simple to use and 100% secured)
-
@TorNix~|nRCan i know what is the wrong on the code?
-
did you defined the screenW and screenH ???
-
[OFFERING] Scripting Services [Non-Paid]
DiGiTal replied to Unknown-Guy's topic in Looking for staff
@siddharth invited on discord and skype ! -
[LF] Looking for a photoshop designer [PAID/Unpaid]
DiGiTal replied to siddharth's topic in Looking for staff
Im here if you still searching -
very good script THE BEST KEEP your Working !!!
-
Did u saved it ? show me the part of the acl? explaine more if u can.
-
Hi, You have to read this. https://forum.multitheftauto.com/topic/96776-tut-scaling-drawinggui-elements-for-all-resolutions/
-
is your internet powerull? more 50kb ?
-
Hi, when i click to a button for to spawn the car it will spawn after it will be destroyed. when i delete the destroy the player can Spam with spawning. i want once it's spawned he can't spawn again . addEvent("spawncar1",true) addEventHandler("spawncar1",getRootElement(), function() if not (isGuestAccount(getPlayerAccount(client))) then if not (isPedInVehicle(client)) then local x,y,z = getElementPosition(client) if (getElementData(client,"mycar1")) and (getElementData(client,"mycar1")~= nil) --[[and (getElementType(getElementData(client,"mycar1")) =="vehicle")]] then local vehicle = getElementData(client,"mycar1") outputChatBox("Vehicle destroyed",client) elseif not (getElementData(client,"mycar1")) then local account = getPlayerAccount(client) local name = getAccountName(account) local playercar = executeSQLQuery("SELECT Model,Paintjob,Color,Upgrade0,Upgrade1,Upgrade2,Upgrade3,Upgrade4,Upgrade5,Upgrade6,Upgrade7,Upgrade8,Upgrade9,Upgrade10,Upgrade11,Upgrade12,Upgrade13,Upgrade14,Upgrade15,Upgrade16 FROM carslot1 WHERE PlayerName = ?",name) if (playercar) then if #playercar > 0 then local x,y,z = getElementPosition(client) local vehicle = createVehicle(playercar[1].Model,x + 5,y +2,z) setVehiclePaintjob(vehicle,playercar[1].Paintjob) setElementData(vehicle,"vehicleOwner","mycar1") setElementData (vehicle,"mycar1",getPlayerName(source)) setElementData (client, "mycar1", vehicle) setElementData(vehicle,"VOwner",getPlayerName(client)) outputChatBox ("Car spawned.", source, 153,51,255) addVehicleUpgrade(vehicle, playercar[1].Upgrade0) addVehicleUpgrade(vehicle, playercar[1].Upgrade1) addVehicleUpgrade(vehicle, playercar[1].Upgrade2) addVehicleUpgrade(vehicle, playercar[1].Upgrade3) addVehicleUpgrade(vehicle, playercar[1].Upgrade4) addVehicleUpgrade(vehicle, playercar[1].Upgrade5) addVehicleUpgrade(vehicle, playercar[1].Upgrade6) addVehicleUpgrade(vehicle, playercar[1].Upgrade7) addVehicleUpgrade(vehicle, playercar[1].Upgrade8) addVehicleUpgrade(vehicle, playercar[1].Upgrade9) addVehicleUpgrade(vehicle, playercar[1].Upgrade10) addVehicleUpgrade(vehicle, playercar[1].Upgrade11) addVehicleUpgrade(vehicle, playercar[1].Upgrade12) addVehicleUpgrade(vehicle, playercar[1].Upgrade13) addVehicleUpgrade(vehicle, playercar[1].Upgrade14) addVehicleUpgrade(vehicle, playercar[1].Upgrade15) addVehicleUpgrade(vehicle, playercar[1].Upgrade16) local col1 = gettok (playercar[1].Color, 1, string.byte(',') ) local col2 = gettok (playercar[1].Color, 2, string.byte(',') ) local col3 = gettok (playercar[1].Color, 3, string.byte(',') ) local col4 = gettok (playercar[1].Color, 4, string.byte(',') ) local col5 = gettok (playercar[1].Color, 5, string.byte(',') ) local col6 = gettok (playercar[1].Color, 6, string.byte(',') ) outputChatBox(col1) if col1 then setVehicleColor(vehicle, tonumber(col1), tonumber(col2), tonumber(col3), tonumber(col4), tonumber(col5), tonumber(col6)) end else outputChatBox("You have not buy a car for this slot yet",client) end end end else outputChatBox("You need to get out of your vehicle first",client) end else outputChatBox("You need to log in first",client) end end)