-
Posts
6,063 -
Joined
-
Last visited
-
Days Won
208
Everything posted by IIYAMA
-
Why don't you post your meta and then we fix it.
-
for index1 = 1,#tab do local tabContents = tab[index1] local newString for index2 = 1,#tabContents do newString = tabContents[index2].. " " end if newString then outputChatBox(newString) end end You mean something like this?
-
addCommandHandler don't have a source. Server side USMCteam = createTeam ("USMC") addCommandHandler ("usmc", function(player) if not isPedDead(player) then setElementModel (player, 287) giveWeapon (player, 28, 500) end setPlayerTeam (player, USMCteam) end)
-
I understand everything, You can create a custom acl group and put them in there. Change your script and done. no big deal.
-
I want a stripper! They are (not) for free!!! MAYBE YOU SHOULD READ THIS FIRST
-
With admin resource you can also add players/resources.
-
onPlayerPickUpRacePickup individual players, how ???
IIYAMA replied to -ffs-AbodyRulez's topic in Scripting
The user data should be the table key and not his nick. Nicks can be changed you know. -
I don't know if this also does returns the wheels. (I never tried it before) https://wiki.multitheftauto.com/wiki/Ge ... Components https://wiki.multitheftauto.com/wiki/Ge ... ntPosition returns:(patriot) boot_dummy windscreen_dummy wheel_rf_dummy wheel_lf_dummy wheel_lb_dummy wheel_rb_dummy bonnet_dummy chassis bump_front_dummy extra_` chassis_vlo door_lr_dummy door_rr_dummy door_lf_dummy bump_rear_dummy door_rf_dummy
-
If the element(player) isn't in the server, how the hell can you get the type of it?
-
it seems you totally agree with me . . . . btw I hate p-p-paaaaiint! I almost can't write it down.
-
I am using it sometimes, but a local function is always faster because you don't have to recreate another function. Most of the time with fast timers or things that have to be done without interrupt other things that require all the data inside. I love lua, so many possibility's and so many code styles
-
tables, learn it or write double/triple/////// lines.
-
It is info, things can be stored in it. But the acl will be stored there and can be changed manually when the server is off line. well why don't you edit it, it can't be that hard can it?
-
Doesn't matter, if the script has admin rights. If you make the script and you activate it to set ranks, there won't be any right problems. But if you use somebody else his script, you may have those problems. Codes can give options but also limit things. I don't know about what kind of script you are talking about, .lua or .xml But that can just be changed manually. (server must not be running) MTA San Andreas 1.3\server\mods\deathmatch > acl.xml
-
local vehicleHandling423 = { {"mass", 10000.0}, {"turnMass", 50000.0}, {"dragCoeff", 2.0}, {"centerOfMass", { 0.0, 0.0, -0.6 }}, {"percentSubmerged", 80}, { "tractionMultiplier", 0.70}, {"tractionLoss", 0.9}, {"tractionBias", 0.5}, {"numberOfGears", 5}, {"maxVelocity", 154.0}, {"engineAcceleration", 35.0}, {"engineInertia", 10.0}, {"driveType", "awd"}, {"engineType", "petrol"}, {"brakeDeceleration", 11.0}, {"brakeBias", 0.45}, { "ABS", false}, {"steeringLock", 30.0}, {"suspensionForceLevel", 1.4}, {"suspensionDamping", 0.10}, {"suspensionHighSpeedDamping", 0.0}, {"suspensionUpperLimit", 0.40}, {"suspensionLowerLimit", -0.40}, {"suspensionFrontRearBias", 0.5}, {"suspensionAntiDiveMultiplier", 0.3}, {"seatOffsetDistance", 0.20}, {"collisionDamageMultiplier", 0.20}, {"monetary", 35000}, {"modelFlags", 0x40006800}, {"handlingFlags", 0x1300005}, {"headLight", 9}, {"tailLight", 1}, {"animGroup", 0} } addEventHandler("onVehicleEnter",root, function () if getElementModel(source) == 423 then for i=1,#vehicleHandling423 do local dataHandling = vehicleHandling423[i] setVehicleHandling(source,dataHandling[1],dataHandling[2] ) end end end)
-
myTable = { a = {test = "ok"} } myTable.b = {} myTable.b.test = myTable.a.test outputChatBox(tostring(myTable.a.test)) outputChatBox(tostring(myTable.b.test)) no it isn't, cause you can't index something that hasn't been created yet. myTable = { -- not yet created } -- created
-
Just the only way to make it faster now is by changing it to a spraycan. > flag 0x000400 Read that list carefully and see what isn't possible yet.
-
You can also choose for onClientRender or onClientPreRender. Then you simply use your own index without a loop.
-
then you may have to use a custom dx name tag.
-
It seems there is no problem. But maybe you can better use setPlayerName instead of setPlayerNametagText . https://wiki.multitheftauto.com/wiki/SetPlayerName local ListSerial = { ["D959022732DB64516435467F3D1BF5F4"]="Sojn", ["A5331B0D0A5919DBA1C19B1A278E68D4"]="d7om", ["C57CA400888FD05D058D04571B4FA912"]="iMr.3a[Z]eF", ["2D7A67D844738FEA7562CEDBE812A3E2"]="Mizo" } addEventHandler('onPlayerJoin', root, function ( ) local serialData = ListSerial[getPlayerSerial( source )] if serialData then setPlayerName ( source, serialData) setPlayerNametagColor ( source, 255, 0, 0 ) end end)
-
ah yes, updated. let me test it.
-
local ListSerial = { ["D959022732DB64516435467F3D1BF5F4"]="Sojn", -- ["A5331B0D0A5919DBA1C19B1A278E68D4"]="d7om", -- ["1715B68D93F4CDF04BAA065F5D4D14B2"]="iMr.3a[Z]eF", ["2D7A67D844738FEA7562CEDBE812A3E2"]="Mizo" } addEventHandler('onPlayerJoin', root, function ( ) local serialData = ListSerial[getPlayerSerial( source )] if serialData then setPlayerNametagText ( source, serialData ) setPlayerNametagColor ( source, 255, 0, 0 ) end end)
-
local ListSerial = { ["D959022732DB64516435467F3D1BF5F4"]=true, -- Sojn ["A5331B0D0A5919DBA1C19B1A278E68D4"]=true, -- d7om ["1715B68D93F4CDF04BAA065F5D4D14B2"}=true, -- Me ["2D7A67D844738FEA7562CEDBE812A3E2"]=true -- Mizo } addEventHandler('onPlayerJoin', root, function ( ) if ListSerial[getPlayerSerial( source )] then setPlayerNametagText ( source, "????" ) setPlayerNametagColor ( source, 255, 0, 0 ) end end)