
sckatchof
Members-
Posts
394 -
Joined
-
Last visited
Everything posted by sckatchof
-
Try This : local Ped = createPed(280, 490.66412353516, -1503.8507080078, 20.566244125366, 0) setPedArmor(Ped, 100) setPedRotation(Ped, 0.39208984375) setTimer(giveWeapon, 3500, 1, Ped, math.random(25,31), 300, true) function anims() setPedAnimation(Ped, "GANGS", "smkcig_prtl") end setTimer(anims, 10000, 0) and change x, y, z , R
-
function anim() setPedAnimation(Ped, "colt_cop", "colt45_crouchfire") end setTimer(anim, 10000, 0) choose your animation : https://wiki.multitheftauto.com/wiki/Ani ... D_.2814.29
-
setPedAnimation
-
What mean Rx??? its mean Rotation X
-
Try this : ped = createPed( Skin, X, Y, Z, Rx ) function pedWeps( ) giveWeapon( ped, 31, 200, true ) end addEventHandler( "onResourceStart", root, function( ) setTimer( pedWeps, 1000, 0 ) end ) -- Give Ped wep after 1 second
-
thank you snake for ur help i will try to fix it thnx again
-
Yes im sure !!! Criminal = createTeam ("Criminal", 255, 0, 0)
-
Of course i changed it !
-
script.lua:8: Bad argument @' get playersIn team' script.lua:8: Bad argument #1 to 'pairs" and blips does not show and marker!!
-
sorry because i'm new in scripting that's why . i mean when I enter the car I recive blip and marker where I can delivery it. and when I get into the marker, the marker and the blip and the car removed
-
when i get in the car blip does not show and marker and i want the blip show just for team. thnx for help snake
-
hello , why this script does not work i try many times and i need help this car show just for team and when he arrived to the marker get the money and Destroy marker and blip and car . This is my scirpt. function create () hijackerv = createVehicle ( 500, 2071, -1332, 25, 0, 0, 0 ) blip = createBlipAttachedTo ( hijackerv, 53, 1 ) outputChatBox( 'hijacker has appeared, enter it and distribute it!', 0, 255, 125 ) end create () function getdriver ( driver ) if ( driver ) then outputChatBox( 'Those inside the car, hurry up!', driver ) end end addEventHandler ( "onVehicleEnter", getRootElement(), getdriver ) function car( thePlayer ) if (source == marker) then marker = createMarker ( 2015, -2410, 12.5, "cylinder", 6, 255, 0, 0, 90 ) blip = createBlipAttachedTo ( marker, 51, 1 local money = math.random(15000,25000) givePlayerMoney ( source, math.random(15000,25000) outputChatBox ( "Well done, you get the money "..money.."$ !Good Work", source, 0,255,0 ) destroyElement ( marker ) destroyElement ( blip ) destroyElement ( hijackerv ) end end addEventHandler ( "onVehicleEnter", getRootElement(), car )
-
thanks snake its work
-
this is my script spawnsHospitals = {{X,Y,Z,RZ}} spawnsHospitals[1] = {X=1177.4658203125,Y=-1323.8505859375,Z=14.072093963623,RZ=272.34698486328} spawnsHospitals[2] = {X=2033.337890625,Y=-1415.2353515625,Z=16.9921875,RZ=136.29571533203} spawnsHospitals[3] = {X=-2660.431640625,Y=633.8486328125,Z=14.453125,RZ=181.82925415039} spawnsHospitals[4] = {X=1578.947265625,Y=1768.3779296875,Z=10.8203125,RZ=93.712066650391} spawnsHospitals[5] = {X=1876.330078125,Y=2237.36328125,Z=11.125,RZ=5.7651672363281} spawnsHospitals[6] = {X=1244.9228515625,Y=332.85546875,Z=19.5546875,RZ=339.0514831543} spawnsHospitals[7] = {X=-321.7744140625,Y=1057.1728515625,Z=19.7421875,RZ=310.25588989258} spawnsHospitals[8] = {X=-1514.6015625,Y=2525.173828125,Z=55.780910491943,RZ=4.556640625} function playerKilled( ) setTimer( respawnToNearestHospital, 5000, 1, source ) end addEventHandler("onPlayerWasted", getRootElement(), playerKilled ) function respawnToNearestHospital( thePlayer ) local x, y, z = getElementPosition( thePlayer ) tableDist = {{index,dist}} for k,i in ipairs ( spawnsHospitals ) do local x2 = spawnsHospitals[k]["X"] local y2 = spawnsHospitals[k]["Y"] local dis = getDistanceBetweenPoints2D( x, y, x2, y2 ) tableDist[k] = {index=k,dist=dis} end local goodK = -1 for l,j in ipairs( tableDist ) do if ( l == 1 ) then goodK = 1 else local DIST1 = tableDist[goodK]["dist"] local DIST2 = tableDist[l]["dist"] if ( DIST2 < DIST1 ) then goodK = l end end end if ( goodK == -1 ) then return end spawnPlayer( thePlayer, spawnsHospitals[goodK]["X"], spawnsHospitals[goodK]["Y"], spawnsHospitals[goodK]["Z"], math.random (0,288), 0, 0, spawnTeam) setPedRotation( thePlayer, spawnsHospitals[goodK]["RZ"] ) if(tonumber(skin) == 199) then skin = math.random(0,200) end end
-
i try but doesn't work when i die my skin changer to cj skin
-
I dont know the functions because im new in scripting
-
when i dead my skin changer to CJ skin and when i destroy the car remain in place do not disappear ! why ?
-
Ok thanks i will try , but i download this http://www.mediafire.com/?5et60em7mog3yms and i dont know how to use !!
-
hello my friends , sometimes i download scripts from community.multitheftauto.com some scripts show like this code , and i want to know how to protecte my scripts when client download my scripts they show like this code : LuaQ 2 @C:\Users\xbost\Desktop\crap\lua\speed_client.lua ” @ E€ \ € € €€ À À À€ G€ @ @ €B E€ M€Â G@ €€ À € @ À @ €D @ À @EŠ ÀE‹ ÀEŒ €ÃŒ €C Ç ÇŽÀ @ ÀG ÀG €È ÀÇ‘ @E’ @Å’ €É‰ €Ã“ ÀG”€ € @ À € @ À € @ À € @ À € @ À € AÀ À Á€ Á €€@ € AÀ À ÁÀ Á €€ € AÀ À ÁÀ €€@ € A€ € Á€ Á €€À @ € € À $ $@ @ $€ € À A …À äÀ @ À A@ …À ä @ À A€ …À ä@ @ À AÀ … ä€ @ $À $ @ À A€ … ä@ @ $€ À $À @ A€ ¤ @€ € W rRoot getResourceRootElement getThisResource sRoot getRootElement sw sh guiGetScreenSize csw csh @`@ lp getLocalPlayer xAngle ð? frame >@ scale ”@ crack on w Àr@ h s r x @@ y settings ào@ g b br spin mph info a imgBG img/speed_bg.png imgL img/speed_labels.png imgHP img/speed_hp.png imgBGG img/speed_bg_glow.png imgIR img/speed_innerring.png imgOR img/speed_outerring.png imgN img/speed_needle.png imgNS img/speed_needle_s.png imgCV img/speed_cover.png imgCR img/speed_crack.png labelColor tocolor Àk@ brightness white Àh@ black ddcSW drag spinner xml renderSpeed getSpeed getHealth addEventHandler onClientVehicleEnter onClientVehicleExit onClientPlayerWasted onClientResourceStart loadSettings saveSettings onClientResourceStop openSettings ddcSpeed addCommandHandler spds X G €€ E@ \€€ €À €A€ …À € € €…À A‡À Ž@Á € ƒÎ@Á Á N AB@ €BÀ €AÁ € @€ CÀ €AA € À€ ‡@ €Á À €E € \ €EA @‰€ €EA MÄGA EA B LGA €‰ €À E \€ ZA À €EA \€ Z €E
-
why this code doesn't work !! local PoliceMarker = createMarker ( 95.099998474121, 1924.8000488281, 17.10000038147, 'cylinder', 1.8, 0, 100, 255, 150 ) PoliceGui = guiCreateWindow(227,106,342,376," Police job",false) Have_Job1 = guiCreateButton(39,313,111,45,"Have job!",false,PoliceGui) Cancel1 = guiCreateButton(200,312,111,45,"Cancel",false,PoliceGui) Doel1 = guiCreateMemo(63,44,234,242,"Police Job:\nAs police you will have a hourly payment. Further objectves comming soon!",false,PoliceGui) guiMemoSetReadOnly( Doel1,true ) guiSetVisible(PoliceGui, false) addEventHandler("onClientMarkerHit", PoliceMarker, function(hitElement) if hitElement == localPlayer then if (guiGetVisible(PoliceGui) == false) then guiSetVisible(PoliceGui, true) showCursor(true) guiSetInputEnabled(true) else outputChatBox ("The police doesn't want you. Please re-enter the marker.") end end end )
-
this site to choose all the codes colors [url]http://html-color-codes.info/[/url]