Jump to content

CapY

Members
  • Posts

    1,646
  • Joined

  • Last visited

Everything posted by CapY

  1. It's supposted to hide ped, his name and blip , can you do it on script i posted .
  2. CapY

    spawn blip

    ERROR:exports:Call to non existing resource ( customblips ) [string"?"] ERROR:spawnblip\client.lua:5: attempt to index field 'customblips' ( a nil value )
  3. And what with this ? Blip is not destroyed . Server side only: iv = 0 function toggleInvis( source ) if iv == 0 then iv = 1 setPlayerNametagShowing(source, false) setElementAlpha(source, 0) else iv = 0 setPlayerNametagShowing(source, true) setElementAlpha(source, 255) end end function destroyBlipAttachedTo(player) for id, attachedElement in ipairs(getAttachedElements(player)) do if getElementType(attachedElement) == "blip" then destroyElement(attachedElement) end end end addCommandHandler ( "invisible", toggleInvis, destroyBlipAttachedTo )
  4. CapY

    spawn blip

    Two errors here ... addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), function() local blip = guiCreateButton ( 0, 0, 25, 20, "Spawn", false ) guiSetFont(blip,"default-small") exports.customblips:guiConvertToCustomBlip ( blip, -700, 960, 10 ) end )
  5. CapY

    Modeling

    Yep i heard for zmodeler today too .
  6. CapY

    markers

    JR10 can it be only a client side ?
  7. CapY

    Modeling

    3Ds max ? That's the software from where you create a models.
  8. CapY

    Modeling

    Is there exists any modeling software for MTA.
  9. CapY

    Models 4 skins

    It is possible already. You create a model with some modeling software and later you must create a script to import/replace that original model with custom.
  10. CapY

    markers

    I don't want to fight , lock this thread moderators.
  11. CapY

    vehramps

    Because it's not created by author , client-only.
  12. CapY

    markers

    I dont read your posts as ussually
  13. CapY

    Vehicles

    So i can't set all upgrades available for all vehicles ?
  14. Can you add a option to modifiy |edit models ? That would be great.
  15. CapY

    Vehicles

    Just some vehicles can be upgraded by spoilers, paintjob, etc,... I want set it to be available on all vehicles What functions do i need to do that ?
  16. CapY

    markers

    local sMarker = createMarker (1618.6726074219, 1448.3284912109, 30.770175933838, 'cylinder', 7.0, 255, 0, 0, 150) -- create myMarker function MarkerHit( hitElement, matchingDimension ) -- define MarkerHit function for the handler local elementType = getElementType( hitElement ) -- get the hit element's type outputChatBox( elementType.." inside sMarker", getRootElement(), 255, 255, 0 ) -- attach the element's type with the text, and output it setElementPosition ( getLocalPlayer(), 1618.6726074219, 1448.3284912109, 30.770175933838 ) end addEventHandler( "onMarkerHit", sMarker, MarkerHit ) meta : type="map" version="1.0.0" /> "beachparty.map" dimension="0" /> "1618.6726074219" posY="1448.3284912109" posZ="30.770175933838" type="cylinder" /> Nil at getLocalPlayer()
  17. CapY

    markers

    and setElementPosition is function to teleport a player ?
  18. CapY

    markers

    Oh Http you finally have acc on the forums . JR10 why the hell i need fadeCamera ?
  19. CapY

    markers

    How to teleport with marker to marker ?
  20. CapY

    Sv . static

    I was know that before.
  21. CapY

    Sv . static

    And how to do it ? I didnt understand you .
  22. CapY

    Sv . static

    In client , Here: glp = getLocalPlayer() notallowed = {[432] = true, [538] = true, [569] = true, [590] = true, [537] = true, [449] = true} spaces = {["Police Maverick"] = true, ["Mountain Bike"] = true, ["Pizza Boy"] = true, ["Utility Van"] = true, ["Police Car (Los Santos)"] = true, ["Police Car (San Fierro)"] = true, ["Police Ranger"] = true, ["FBI Rancher"] = true, ["FBI Truck"] = true, ["Fire Truck"] = true, ["Fire Truck (Ladder)"] = true, ["Police Car (Las Venturas)"] = true, ["Black Boxville"] = true, ["Linerunner (From 'Tanker Commando')"] = true, ["Mr. Whoopee"] = true, ["Cement Truck"] = true, ["Combine Harvester"] = true, ["Berkley's RC Van"] = true, ["Damaged Sadler"] = true, ["News Van"] = true, ["RC Bandit"] = true, ["RC Baron"] = true, ["RC Goblin"] = true, ["RC Raider"] = true, ["RC Tiger"] = true, ["BF Injection"] = true, ["Bloodring Banger"] = true, ["Monster 2"] = true, ["Super GT"] = true, ["Hotring Racer"] = true, ["Hotring Racer 2"] = true, ["Hotring Racer 3"] = true, ["Rancher (From 'Lure')"] = true, ["RC Cam (flower pot)"] = true, ["News Chopper"] = true } function isNumber(n) return tonumber(n) ~= nil end addCommandHandler("sv", function(cmd, carName, ...) if (glp and isElement(glp) and getElementType(glp) == "player") then if (not isTimer(antiSpam)) then if (isPlayerDead(glp)) then return end local px, py, pz = getElementPosition(glp) if (carName == nil) then msg("No vehicle specified") elseif not isNumber(carName) and (notallowed[getVehicleModelFromName(tostring(carName))]) then msg("Vehicle not allowed") elseif isNumber(carName) and ((notallowed[tonumber(carName)]) or (notallowed[tonumber(math.floor(carName))])) then msg("Vehicle not allowed") elseif (not getVehicleModelFromName(tostring(carName and ...)) and not isNumber(carName) and spaces[tostring(carName)] == false and not tostring(carName) == "none") then msg("Invalid vehicle name '" .. carName .. "'") elseif (getElementInterior(glp) > 0) then elseif (not isPedInVehicle(glp)) then if (isNumber(carName) and tonumber(carName) < 400 or isNumber(carName) and tonumber(carName) > 610) then cancelEvent() msg("Invalid vehicle " .. carName .. "'") else triggerServerEvent("create", glp, glp, px, py, pz, arg2, carName, ...) end elseif (isPedInVehicle(glp)) then if (isNumber(carName) and tonumber(carName) < 400 or isNumber(carName) and tonumber(carName) > 610) then cancelEvent() msg("Invalid vehicle '" .. carName .. "'") else triggerServerEvent("change", glp, glp, cmd, arg2, carName, ...) end end antiSpam = setTimer(function() end, 70, 1) else end end end ) function msg(err) outputChatBox(err,255,0,0) end
×
×
  • Create New...