
mint3d
Members-
Posts
425 -
Joined
-
Last visited
Everything posted by mint3d
-
I didn't actually use it though. My friends said they have opened/used it and it didn't happen to them it was at 24 hours. But I have just decided to report it is there nothing you can do ?
-
Nope I opened it cause I was trying it with another game and I have clicked on MTA instead of the other game and ye..
-
Okay so earlier I opened cheat engine and now every single server I join in MTA I get this... http://snag.gy/e0cOM.jpg
-
None of them worked. Client Side.. local myadminWindow = nil function carGrid (shops) if (myadminWindow == nil) then guiSetInputEnabled(true) local screenx, screeny = guiGetScreenSize() myadminWindow = guiCreateWindow ((screenx-700)/2, (screeny-500)/3, 700, 500, "Index of car prices", false) local tabPanel = guiCreateTabPanel (0, 0.1, 1, 1, true, myadminWindow) local lists = {} local tlBackButton = guiCreateButton(0.8, 0.05, 0.2, 0.07, "Close", true, myadminWindow) -- close button for int, carshop in ipairs(shops) do local modelsSpawned = { } for spotIndex, spawnPoint in ipairs(carshop["spawnpoints"]) do if spawnPoint["vehicle"] and isElement(spawnPoint["vehicle"]) then table.insert( modelsSpawned, getElementModel(spawnPoint["vehicle"]), true) end end local tab = guiCreateTab(carshop["name"], tabPanel) lists[int] = guiCreateGridList(0.02, 0.02, 0.96, 0.96, true, tab) -- commands for level one admins guiGridListAddColumn (lists[int], "Name", 0.15) guiGridListAddColumn (lists[int], "Price", 0.35) guiGridListAddColumn (lists[int], "Remarks", 1.3) for id, carDetails in ipairs(carshop["prices"]) do local row = guiGridListAddRow ( lists[int] ) local remark = "" local carModel = getVehicleModelFromName(carDetails[1]) or -1 if (modelsSpawned[carModel]) then remark = " - Spawned" end guiGridListSetItemText ( lists[int], row, 1, carDetails[1] .. "(" .. tostring(carModel) .. ")", false, false) guiGridListSetItemText ( lists[int], row, 2, carDetails[2], false, false) guiGridListSetItemText ( lists[int], row, 3, carDetails[3] and "Secondhand" or "Brand new"..remark, false, false) end end addEventHandler ("onClientGUIClick", tlBackButton, function(button, state) if (button == "left") then if (state == "up") then guiSetVisible(myadminWindow, false) showCursor (false) guiSetInputEnabled(false) myadminWindow = nil end end end, false) guiBringToFront (tlBackButton) guiSetVisible (myadminWindow, true) else local visible = guiGetVisible (myadminWindow) if (visible == false) then guiSetVisible( myadminWindow, true) showCursor (true) else showCursor(false) end end end addEvent("carshop:cargrid", true) addEventHandler("carshop:cargrid", getRootElement(), carGrid)
-
Can someone help me ? The Pickup isn't working I am really confused function carGrid( thePlayer ) triggerClientEvent(thePlayer, "carshop:cargrid", thePlayer, shops) end addCommandHandler("listcarprices", carGrid) function CarPrices ( thePlayer ) createPickup ( 2114.1337890625, -2128.2666015625, 13.6328125, 3, 1239, 1 ) executeCommandHandler ( "listcarprices", thePlayer ) end addEventHandler ( "onResourceStart", getRootElement(), CarPrices )
-
It doesn't work unless I restart the resource...
-
I need help so it sets a timer or something cause I don't want to restart the resource everytime I join...
-
Ok so I need help I made this script for roleplay but it only works when the script is started can anyone help me ? What could I use instead ? local sx, sy = guiGetScreenSize() local scrSrc = dxCreateScreenSource(sx, sy) local shaderFX = dxCreateShader("tinted_windows.fx", 1, 200, true) function skins() for keys, player in ipairs(getElementsByType("player")) do if ( getPlayerName(player) == "Jordan_Green" ) then --local shader, tec = dxCreateShader ( "texreplace.fx" ) local shader, tec = dxCreateShader("texreplace.fx", 2, 0, true, "ped") local tex = dxCreateTexture ( "textures/swmyri.png") engineApplyShaderToWorldTexture ( shader, "swmyri", player ) dxSetShaderValue ( shader, "gTexture", tex ) end end end addEvent("legitimateResponceRecived", true) addEventHandler("legitimateResponceRecived", getRootElement(), skins) function startTheRes() triggerServerEvent("tintDemSkins", getLocalPlayer()) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), startTheRes) addEventHandler("tintSkins", getRootElement(), startTheRes)
-
We don't support in leaked scripts. Lock this its vG Roleplay Script.
-
Ok so I am trying to do this but its not working I get no errors in debugscript 3 Door Script -- Special doors script by Puma -- Free to use and free to edit, but please aks me for approval if you want to release a significantly altered version of this script -- YOU CAN EDIT THIS: local doorTypeRotation = { ["scissor"] = {72, 0, 0}, ["butterfly"] = {0, -60, 60} } -- add doortypes ----------------------- -- HOW TO USE THIS for douchebags ----------------------- -- Just put this somewhere in your script and fill in a vehicle and a doortype (see above for available doortypes) -- setVehicleDoorType ( v, type ) -- If you want to reset the doortype, just use setVehicleDoorType ( v ) without filling in a type -------------------------------- -- Now comes the part you shouldn't mess with -------------------------------- -- Defining som :~ ----------- local p = getLocalPlayer() local doorAnimTime = 350 local doorIDComponentTable = { [2] = "door_lf_dummy", [3] = "door_rf_dummy", [4] = "door_lr_dummy", [5] = "door_rr_dummy" } local doorTypes = {} local oldDoorRatios = {} local doorStatus = {} local doorTimers = {} for doorType, doorTable in pairs ( doorTypeRotation ) do table.insert ( doorTypes, doorType ) end local vDoorType = {} for i, v in pairs ( getElementsByType("vehicle")) do local doorType = getElementData ( v, "vDoorType" ) if doorType then vDoorType[v] = doorType end end local function vRemoveDoorTypeFromTable ( v ) if isVehicle(v) then vDoorType[v] = nil oldDoorRatios[v] = nil doorStatus[v] = nil doorTimers[v] = nil end end function vehicleDestroyed () vRemoveDoorTypeFromTable(source) end addEventHandler ( "onClientElementDestroy", root, vehicleDestroyed ) addEventHandler ( "onClientVehicleExplode", root ,vehicleDestroyed ) -- MAIN ----------------------------------------------------------------------- function setVehicleDoorType ( v, type ) if v and isElement(v) and getElementType(v) == "vehicle" then if type and tostring(type) and isDoorType(type) then setElementData ( v, "vDoorType", type ) else setElementData ( v, "vDoorType", nil ) vRemoveDoorTypeFromTable ( v ) end end end local function elementDataChange ( key, oldValue ) if key == "vDoorType" and isVehicle(source) then vDoorType[source] = getElementData ( source, "vDoorType" ) end end addEventHandler ( "onClientElementDataChange", root, elementDataChange ) local function preRender () for v, doorType in pairs ( vDoorType ) do if isElement(v) then if not doorTimers[v] then doorTimers[v] = {} end local doorRatios = {} for i=1, 4 do local i = i + 1 -- leftfront=2, rightfront=3, leftrear=4, rightrear=5 local doorRatio = getVehicleDoorOpenRatio ( v, i ) if doorRatio and oldDoorRatios[v] and oldDoorRatios[v][i] then local oldDoorRatio = oldDoorRatios[v][i] if not doorStatus[v] then doorStatus[v] ={} end local doorPreviousState = doorStatus[v][i] if not doorPreviousState then doorPreviousState = "closed" end if doorPreviousState == "closed" and doorRatio > oldDoorRatio then doorStatus[v][i] = "opening" doorTimers[v][i] = setTimer(function(v,i)doorStatus[v][i]="open" doorTimers[v][i]=nil end,doorAnimTime,1,v,i) elseif doorPreviousState == "open" and doorRatio < oldDoorRatio then doorStatus[v][i] = "closing" doorTimers[v][i] = setTimer(function(v,i)doorStatus[v][i]="closed" doorTimers[v][i]=nil end,doorAnimTime,1,v,i) end elseif not oldDoorRatios[v] then oldDoorRatios[v] = {} end if doorRatio then oldDoorRatios[v][i] = doorRatio end end else vDoorType[v] = nil oldDoorRatios[v] = nil doorStatus[v] = nil doorTimers[v] = nil end end for v, doors in pairs ( doorStatus ) do local doorType = vDoorType[v] local rx, ry, rz = unpack ( doorTypeRotation[doorType] ) for door, status in pairs ( doors ) do local ratio = 0 if status == "open" then ratio = 1 end local timer = doorTimers[v][door] if timer and isTimer ( timer ) then local timeLeft = getTimerDetails ( timer ) ratio = timeLeft/doorAnimTime if status == "opening" then ratio = 1 - ratio end end local dummyName = doorIDComponentTable[door] if dummyName then local rx, ry, rz = unpack(doorTypeRotation[doorType]) local rx, ry, rz = rx*ratio, ry*ratio, rz*ratio if string.find(dummyName,"rf") or string.find(dummyName,"rr") then ry, rz = ry*-1, rz*-1 end setVehicleComponentRotation ( v, dummyName, rx, ry, rz ) end end end end addEventHandler ( "onClientPreRender", root, preRender ) -- UTILS ----------------------------------------------------------------- function isDoorType ( type ) if type and tostring(type) then for i, t in pairs ( doorTypes ) do if t == type then return true end end end end function pv (player) if not player then return getPedOccupiedVehicle ( p ) elseif isPlayer(player) then return getPedOccupiedVehicle ( player ) end end function isPlayer ( player ) if player and isElement ( player ) and getElementType(player) == "player" then return true end end function isVehicle ( vehicle ) if vehicle and isElement ( vehicle ) and getElementType(vehicle) == "vehicle" then return true end end --Meta-- Command Script addCommandHandler ( "scissor", function ( ) local veh = getPedOccupiedVehicle ( localPlayer ) if ( veh ) then exports [ "door" ]:setVehicleDoorType ( veh, scissor ) end end ) --Meta--
-
Ok so I am using this coding from https://forum.multitheftauto.com/viewtopic.php?f=108&t=73180 I was wondering how I can make a command like /scissor and it makes the doors scissor please help me out
-
Can you help me out with a few functions ??
-
How would I go about doing this ? Any help?
-
Ok so I was wondering if its possible to have 2 people with the same skin but one is custom and one is the original for say I have skin 240 and my friend has skin 240, and I do /makemyskincustom and it made it a custom skin but still id 240 is it possible?
-
Sorry but something like this? http://gtaforums.com/topic/375568-zone-list/
-
Ok so I got this but I can't find the error.. setTimer(function() triggerServerEvent("onClientReady20",getLocalPlayer()); end,3000,1) addEvent("onClientReady20",true) addEventHandler("onClientReady20",root, function() triggerLatentClientEvent(source,"onServerSendS",100000,false,source,scriptstr); end) Client (Jordan) triggered serverside event onClientReady20, but event is not added serverside
-
[2014-06-15 22:33:40] WARNING:Bad argument @ 'getPlayerAccount' [Expected element at argument 1] [2014-06-15 22:33:40] WARNING:Bad argument @ 'getAccountData' [Expected account at argument 1, got boolean] [2014-06-15 22:33:40] WARNING:Bad argument @ 'getAccountData' [Expected account at argument 1, got boolean] I am getting these errors please help exports.scoreboard:addScoreboardColumn('Online') addEventHandler ( "onResourceStart" , resourceRoot , function ( ) for index , player in ipairs ( getElementsByType ( "player" ) ) do local pAccount = getPlayerAccount ( player ) if not isGuestAccount ( pAccount ) then local minutes = getAccountData ( pAccount , "Online.minutes" ) if minutes then local hours = getAccountData ( pAccount , "Online.hours" ) if # tostring ( minutes ) == 1 then minutes = "0" .. minutes end if # tostring ( hours ) == 1 then hours = "0" .. hours end setElementData ( player , "Online" , hours .. " H " .. minutes .. " M" ) local timer = setTimer ( updatePlayerOnline , 60000 , 1 , player ) setElementData ( player , "Online.timer" , timer ) else setAccountData ( pAccount , "Online.minutes" , 0 ) setAccountData ( pAccount , "Online.hours" , 0 ) setElementData ( player , "Online" , "00 H 00 M" ) local timer = setTimer ( updatePlayerOnline , 60000 , 1 , player ) setElementData ( player , "Online.timer" , timer ) end else setElementData ( player , "Online" , "N/A" ) end end end ) addEventHandler ( "onResourceStop" , resourceRoot , function ( ) for index , player in ipairs ( getElementsByType ( "player" ) ) do local pAccount = getPlayerAccount ( player ) if not isGuestAccount ( pAccount ) then local timer = getElementData ( player , "Online.timer" ) if isTimer ( timer ) then killTimer ( timer ) end end end end ) addEventHandler ( "onPlayerLogin" , root , function ( _ , pAccount ) local minutes = getAccountData ( pAccount , "Online.minutes" ) if minutes then local hours = getAccountData ( pAccount , "Online.hours" ) if # tostring ( minutes ) == 1 then minutes = "0" .. minutes end if # tostring ( hours ) == 1 then hours = "0" .. hours end setElementData ( source , "Online" , hours .. " H " .. minutes .. " M" ) local timer = setTimer ( updatePlayerOnline , 60000 , 1 , source ) setElementData ( source , "Online.timer" , timer ) else setAccountData ( pAccount , "Online.minutes" , 0 ) setAccountData ( pAccount , "Online.hours" , 0 ) setElementData ( source , "Online" , "00 H 00 M" ) local timer = setTimer ( updatePlayerOnline , 60000 , 1 , source ) setElementData ( source , "Online.timer" , timer ) end end ) addEventHandler ( "onPlayerLogout" , root , function ( pAccount ) local timer = getElementData ( source , "Online.timer" ) if isTimer ( timer ) then killTimer ( timer ) end end ) addEventHandler ( "onPlayerJoin" , root , function ( ) setElementData ( source , "Online" , "N/A" ) end ) addEventHandler ( "onPlayerQuit" , root , function ( ) local pAccount = getPlayerAccount ( source ) if not isGuestAccount ( pAccount ) then local timer = getElementData ( source , "Online.timer" ) if isTimer ( timer ) then killTimer ( timer ) end end end ) function updatePlayerOnline ( player ) local pAccount = getPlayerAccount ( player ) local minutes = getAccountData ( pAccount , "Online.minutes" ) local hours = getAccountData ( pAccount , "Online.hours" ) minutes = tostring ( tonumber ( minutes ) + 1 ) if minutes == "60" then hours = tostring ( tonumber ( hours ) + 1 ) minutes = "00" end setAccountData ( pAccount , "Online.minutes" , tonumber ( minutes ) ) setAccountData ( pAccount , "Online.hours" , tonumber ( hours ) ) if # tostring ( minutes ) == 1 then minutes = "0" .. minutes end if # tostring ( hours ) == 1 then hours = "0" .. hours end setElementData ( player , "Online" , hours .. " H " .. minutes .. " M" ) local timer = setTimer ( updatePlayerOnline , 60000 , 1 , player ) setElementData ( player , "Online.timer" , timer ) end
-
Thanks TAPL your stuff always works for me..