[DMC]
Members-
Posts
165 -
Joined
-
Last visited
Everything posted by [DMC]
-
i dont get what you mean i think he means a table with Wisin 2 player 1
-
I'm new in LUA so i don't now here : ( i just need a register button help me. Like i said, Download a register/login panel and look how they did it
-
why not download a login/register panel from community and edit it to yours, its not that hard
-
no example , my name is DMC when i type in the edit and i type lolololol it wil make my name lololololdmc but i want just hex and nothing else so i only can type a hex code in there
-
hey, i made 2 edits with name and text colors but how can i make it just HEX and not any text
-
Ok, but now im stuck on how do change that to detect if there in a certain range i dont know what you mean but i do know its working when you drive in the maker
-
is it possible to trade this map with me
-
i dont understand what you mean, explain it by translator maybe so we can help
-
here is an example my friend solidsnake made for me marker1 = createMarker (3079.3068847656, -2098.3444824219, 31.440458297729, "corona", 10, 255, 0, 0, getRootElement()) function teleport1(thePlayer) if source == marker1 then if isPedInVehicle(thePlayer) then local vehicle = getPedOccupiedVehicle(thePlayer) if getVehicleController(vehicle) == thePlayer then setElementPosition (vehicle, 3440.9497070313,-2223.5588378906,1.34375) end end end end addEventHandler("onMarkerHit", getRootElement(), teleport1)
-
it doesnt really matter ...
-
Server function bridgeMusic(thePlayer) triggerClientEvent(getRootElement(), "bridgeCloseMusic", getRootElement()) end addCommandHandler("bridgeclose", bridgeMusic) Client addEvent("bridgeCloseMusic",true) addEventHandler("bridgeCloseMusic", getRootElement(), function() local sound = playSound3D("music.mp3", x, y, z, false) setSoundVolume(sound, 2.0) end)
-
look here, https://wiki.multitheftauto.com/wiki/PlaySound3D just technically copy the code and replace eventHandler with a commandHandler
-
Client-Side addEventHandler('onClientResourceStart', resourceRoot, function () Object1 = createObject ( objectID, x, y, z, 0, 0, 0 ) setElementCollisionsEnabled (Object1, false) end ) if im not wrong this should work and if you want a vgncarshade it will be Object1 = createObject ( 3458, x, y, z, 0, 0, 0 ) at object1: you put the coordinates at x, y, z ( in the map you dont add the object, the script will make it createObject ----------------------------------------------------------------------------------------------------------------------------------------------- And your first code, tell me how were u going to get the location and id of the object you want?
-
there is 1 at the forums made by kevin11 savecashskin or something like that
-
why? is there a site for this because i searched wiki and i apriciate the help you guys have been giving me, i ones read a tiny bit in a manual somewere but im gonna try to script some scripts i wanted for a long time all by myself this time
-
function findPlayerByName(playerPart) local pl = getPlayerFromName(playerPart) if isElement(pl) then return pl else for i,v in ipairs (getElementsByType ("player")) do if (string.find(getPlayerName(v),playerPart)) then return v end end end end function n1 (playerSource, command, arg1) if (arg1 == nil ) or arg1 == false then outputChatBox ("ERROR: You must insert a valid player name.", playerSource, 255, 0, 0, false) else local playerElement = findPlayerByName(arg1) if playerElement then local name = getPlayerName(playerElement) local sourceName = getPlayerName(playerElement) outputChatBox (getPlayerName(playerSource).." Says Nice One to "..getPlayerName((playerElement).."!", getRootElement(), 255, 255, 0, true) end end addCommandHandler("n1", n1) I made this with varez findplayerbyname and its saying 23: expected (to close '(' at line 22) near end' so i added 1 end and it didnt work because its still giving this error, can anyone tell me how to fix it
-
gues im wasting your guys time cuz idk what you guys mean
-
omg this is just genious, you did a better job then mario kart creators
-
hey, i got a script for the admins when i do /admins it says Level 10= level 9= etc but when i do this its saying stack overflow im not comfortable with posting this so im just asking what this error means
